Skip to content

Commit

Permalink
Merge pull request #704 from google/goreleaser-4
Browse files Browse the repository at this point in the history
ci: Emit the snapshot flag during release when not triggered by a version tag.
  • Loading branch information
jaqx0r committed Jan 4, 2023
2 parents 15b574a + db2ae63 commit 81d8b6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -13,7 +13,11 @@ permissions:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
flags: ""
steps:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -22,9 +26,9 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
- uses: goreleaser/goreleaser-action@v3
- uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
args: release --rm-dist ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 81d8b6a

Please sign in to comment.