Publish nightly builds (fix: #394)

This commit is contained in:
Maksym Pavlenko
2022-11-22 18:28:59 -08:00
parent 6c5f602fe1
commit 5b7ddeb540
+12
View File
@@ -4,6 +4,8 @@ on:
push:
tags:
- 'v*'
schedule:
- cron: "0 0 * * *" # Every day at midnight
jobs:
publish:
@@ -29,6 +31,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# Publish a new release from git tag.
- uses: goreleaser/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
@@ -36,3 +39,12 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Publish nightly build.
- uses: goreleaser/[email protected]
if: github.event_name == 'schedule'
with:
version: latest
args: release --rm-dist --nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}