File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 2323 with :
2424 distribution : goreleaser-pro
2525 version : latest
26- args : release --clean --nightly
26+ args : release --clean --nightly -f .goreleaser-nightly.yml
2727 env :
2828 GITHUB_TOKEN : ${{secrets.GH_PAT}}
2929 GORELEASER_KEY : ${{secrets.GORELEASER_KEY}}
Original file line number Diff line number Diff line change 2424 with :
2525 distribution : goreleaser-pro
2626 version : latest
27- args : release --clean
27+ args : release --clean --draft
2828 env :
2929 GITHUB_TOKEN : ${{secrets.GH_PAT}}
3030 GORELEASER_KEY : ${{secrets.GORELEASER_KEY}}
Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+ version : 2
3+ pro : true
4+
5+ release :
6+ name_template : ' v{{.Version}}'
7+
8+ nightly :
9+ publish_release : true
10+ keep_single_release : true
11+ version_template : " {{incminor .Version}}-nightly"
12+
13+ includes :
14+ - from_file :
15+ path : ./.goreleaser.yml
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ builds:
3030 flags :
3131 - -trimpath
3232 ldflags :
33- - -s -w # Don't set main.version.
33+ - " -s -w"
34+ - " {{if .IsNightly}}-X github.com/go-task/task/v3/internal/version.version={{.Version}}{{end}}"
3435
3536gomod :
3637 proxy : true
@@ -45,19 +46,10 @@ archives:
4546 - goos : windows
4647 formats : [zip]
4748
48- release :
49- draft : true
50-
51-
5249git :
5350 ignore_tags :
5451 - " {{if not .IsNightly}}nightly{{end}}"
5552
56- nightly :
57- publish_release : true
58- keep_single_release : true
59- version_template : " {{incminor .Version}}-nightly"
60-
6153snapshot :
6254 version_template : ' {{.Version}}'
6355
You can’t perform that action at this time.
0 commit comments