Skip to content

Commit

Permalink
Merge pull request #59 from vshn/fix/build-snapshot-packages
Browse files Browse the repository at this point in the history
Add separate steps in GitHub action for snapshots and release builds
  • Loading branch information
simu authored Dec 14, 2022
2 parents c46f8c0 + 553906b commit e58da00
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ jobs:
outputFile: .github/release-notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish releases
- name: Build snapshot for master
if: "!startsWith(github.ref, 'refs/tags/v')"
uses: goreleaser/goreleaser-action@v4
with:
args: build --snapshot
- name: Build and publish release for tag
if: startsWith(github.ref, 'refs/tags/v')
uses: goreleaser/goreleaser-action@v4
with:
args: release --release-notes .github/release-notes.md
Expand Down

0 comments on commit e58da00

Please sign in to comment.