Skip to content

Commit b6b8985

Browse files
committed
docs: 测试构建
1 parent 5dd7426 commit b6b8985

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/conf/.goreleaser.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# GoReleaser v2 配置文件
22
version: 2
3-
43
project_name: "{{ .Env.PROJECT_NAME }}"
54

65
# 构建前钩子
@@ -51,10 +50,10 @@ builds:
5150
- goarch: amd64
5251
- goarch: "386"
5352

54-
# 归档配置
53+
# 归档配置 (移除弃用的format配置)
5554
archives:
5655
- id: default
57-
format: binary
56+
# 移除了 format: binary (已弃用)
5857
allow_different_binary_count: true
5958
name_template: >-
6059
{{ .ProjectName }}_{{ .Version }}_
@@ -118,6 +117,6 @@ release:
118117
119118
如有问题请提交 [Issue](https://github.com/{{ .Env.GITHUB_OWNER }}/{{ .Env.GITHUB_REPO }}/issues) 💬
120119
121-
# 快照版本配置 (修复弃用的name_template)
120+
# 快照版本配置 (已正确使用version_template)
122121
snapshot:
123122
version_template: "{{ incpatch .Version }}-dev-{{ .ShortCommit }}"

0 commit comments

Comments
 (0)