File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1919 run : echo "flags=--snapshot" >> $GITHUB_ENV
2020 - uses : actions/checkout@v5
2121 with :
22- fetch-depth : 0 # 获取完整的 git 历史,用于生成 changelog
22+ fetch-depth : 0
2323 - uses : actions/setup-go@v5
2424 with :
2525 go-version : ' 1.23'
2929 - uses : goreleaser/goreleaser-action@v6
3030 with :
3131 distribution : goreleaser
32- version : ' ~> v2 ' # 使用 v2.x 的最新版本
32+ version : latest
3333 args : release --clean ${{ env.flags }}
3434 env :
3535 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 6565 run : |
6666 VERSION="${{ github.event.inputs.version }}"
6767 git add internal/version.go
68- git commit -m "chore: bump version to $VERSION"
68+ git commit -m "release v $VERSION 🎉🎉🎉 "
6969 git push origin main
7070
7171 - name : Create and push tag
Original file line number Diff line number Diff line change 11# .goreleaser.yaml
22project_name : vfox
3+
34before :
45 hooks :
56 - go mod tidy
@@ -113,7 +114,6 @@ brews:
113114 owner : version-fox
114115 name : homebrew-tap
115116 token : " {{ .Env.HOMEBREW_TOKEN }}"
116- folder : Formula
117117 goarm : " 7"
118118 homepage : https://github.com/version-fox/vfox
119119 description : A cross-platform SDK version manager with a simple cli.
@@ -204,7 +204,6 @@ release:
204204 draft : true
205205 prerelease : auto
206206 name_template : " v{{ .Version }}"
207- replace : false
208207 header : |
209208 ## 🎉 What's Changed in v{{ .Version }}
210209
You can’t perform that action at this time.
0 commit comments