Skip to content

Commit

Permalink
Dry run in pull requests, actual release on master
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Mar 1, 2020
1 parent 31bf8cc commit a0eaf0b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Run GoReleaser (Snapshot)
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --skip-publish --rm-dist --snapshot
if: github.event.ref != 'ref/heads/master'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
Expand All @@ -24,4 +30,5 @@ jobs:
# key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.event.ref == 'ref/heads/master'
...

0 comments on commit a0eaf0b

Please sign in to comment.