Skip to content

Commit 26ef693

Browse files
chore: publish nightly (#2246)
Co-authored-by: Andrey Nering <[email protected]>
1 parent 952f32d commit 26ef693

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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}}

.goreleaser.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ archives:
4848
release:
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+
5161
snapshot:
5262
version_template: '{{.Version}}'
5363

0 commit comments

Comments
 (0)