This commit is contained in:
YANGJINZE
2025-05-15 14:15:50 +08:00
parent 1eb25c7b55
commit 5fb796a97d
2 changed files with 25 additions and 1 deletions

View File

@@ -2,6 +2,8 @@ name: goreleaser
on:
push:
branches:
- '*'
tags:
- '*'
@@ -22,6 +24,11 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
-
name: Set Release Version
id: set_version
run: |
echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
@@ -29,7 +36,7 @@ jobs:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
args: release --clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution