File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Realease nightly
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : 0 0 * * *
7+ jobs :
8+ goreleaser :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+
16+ - name : Set up Go
17+ uses : actions/setup-go@v5
18+ with :
19+ go-version : 1.24.x
20+
21+ - name : Run GoReleaser
22+ uses : goreleaser/goreleaser-action@v6
23+ with :
24+ distribution : goreleaser-pro
25+ version : latest
26+ args : release --clean --nightly
27+ env :
28+ GITHUB_TOKEN : ${{secrets.GH_PAT}}
29+ GORELEASER_KEY : ${{secrets.GORELEASER_KEY}}
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ archives:
4848release :
4949 draft : true
5050
51+
52+ git :
53+ ignore_tags :
54+ - " {{if not .IsNightly}}nightly{{end}}"
55+
56+ nightly :
57+ publish_release : true
58+ keep_single_release : true
59+ version_template : " {{incminor .Version}}-nightly"
60+
5161snapshot :
5262 version_template : ' {{.Version}}'
5363
You can’t perform that action at this time.
0 commit comments