Skip to content

Commit

Permalink
chore: Auto goreleaser snapshot mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik authored Jan 22, 2024
1 parent e2b795b commit 3a450ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ permissions:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
flags: ""
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,11 +37,15 @@ jobs:
make
sudo make install
- name: Is snapshot?
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 3a450ca

Please sign in to comment.