Skip to content

[skip changelog] fix archive name for nightly builds #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 2, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[skip changelog] fix archive name for nightly builds
  • Loading branch information
Massimiliano Pippi committed Sep 2, 2019
commit 8d35634fbd1ceb8d16e2f2188857c9e3375df2bc
12 changes: 8 additions & 4 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: nightly

on:
schedule:
# run every day at 1AM
- cron: '0 1 * * *'
# on:
# schedule:
# # run every day at 1AM
# - cron: '0 1 * * *'

on: push

jobs:
publish-nightly:
Expand All @@ -20,6 +22,8 @@ jobs:
uses: actions/checkout@v1

- name: build
env:
PACKAGE_NAME_PREFIX: ${{ github.workflow }}
run: goreleaser --snapshot

- name: upload
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ checksum:
name_template: '{{ .Tag }}-{{ time "20060102" }}-checksums.txt'

snapshot:
name_template: '{{ .Tag }}-{{ time "20060102" }}'
name_template: '{{ .Env.PACKAGE_NAME_PREFIX }}-{{ time "20060102" }}'

release:
prerelease: auto
Expand Down