Skip to content

Commit 5b7ddeb

Browse files
committed
Publish nightly builds (fix: #394)
1 parent 6c5f602 commit 5b7ddeb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
schedule:
8+
- cron: "0 0 * * *" # Every day at midnight
79

810
jobs:
911
publish:
@@ -29,10 +31,20 @@ jobs:
2931
username: ${{ github.repository_owner }}
3032
password: ${{ secrets.GITHUB_TOKEN }}
3133

34+
# Publish a new release from git tag.
3235
- uses: goreleaser/[email protected]
3336
if: startsWith(github.ref, 'refs/tags/')
3437
with:
3538
version: latest
3639
args: release --rm-dist
3740
env:
3841
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
43+
# Publish nightly build.
44+
- uses: goreleaser/[email protected]
45+
if: github.event_name == 'schedule'
46+
with:
47+
version: latest
48+
args: release --rm-dist --nightly
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)