Skip to content

Commit 6bf721c

Browse files
ci: enable snapshot
1 parent 1191d01 commit 6bf721c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
DOCKER_CLI_EXPERIMENTAL: "enabled"
1414
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_PAT }}
1515
steps:
16+
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
17+
run: echo "flags=--snapshot" >> $GITHUB_ENV
1618
-
1719
name: Checkout
1820
uses: actions/checkout@v4
@@ -47,6 +49,6 @@ jobs:
4749
uses: goreleaser/goreleaser-action@v5
4850
with:
4951
version: 1.25.1
50-
args: release --clean
52+
args: release --clean ${{ env.flags }}
5153
env:
5254
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)