Skip to content

Commit 376244d

Browse files
committed
ci: goreleaser.yml
1 parent c38fc7b commit 376244d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/go-releaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
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'
@@ -29,7 +29,7 @@ jobs:
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 }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
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

.goreleaser.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# .goreleaser.yaml
22
project_name: vfox
3+
34
before:
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

0 commit comments

Comments
 (0)