Skip to content

Commit 49c5d2b

Browse files
remyleoneCodelax
andauthored
chore: update goreleaser and include a check (#2638)
* chore: update goreleaser and include a check * Apply suggestions from code review --------- Co-authored-by: Jules Castéran <[email protected]>
1 parent 639bb90 commit 49c5d2b

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.github/workflows/release.yml

+16-11
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,36 @@ jobs:
1818
goreleaser:
1919
runs-on: ubuntu-latest
2020
steps:
21-
-
22-
name: Checkout
21+
- name: Checkout
2322
uses: actions/checkout@v4
24-
-
25-
name: Unshallow
23+
24+
- name: Unshallow
2625
run: git fetch --prune --unshallow
27-
-
28-
name: Set up Go
26+
27+
- name: Set up Go
2928
uses: actions/setup-go@v5
3029
with:
3130
go-version: 1.22
32-
-
33-
name: Import GPG key
31+
32+
- name: Import GPG key
3433
id: import_gpg
3534
uses: crazy-max/ghaction-import-gpg@v6
3635
with:
3736
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3837
passphrase: ${{ secrets.GPG_PASSPHRASE }}
3938
fingerprint: ${{ secrets.GPG_FINGERPRINT }}
40-
-
41-
name: Run GoReleaser
39+
40+
- name: Check goreleaser
4241
uses: goreleaser/goreleaser-action@v5
4342
with:
4443
version: latest
45-
args: release --rm-dist
44+
args: check
45+
46+
- name: Run GoReleaser
47+
uses: goreleaser/goreleaser-action@v6
48+
with:
49+
version: latest
50+
args: release
4651
env:
4752
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
4853
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3+
version: 2
34
before:
45
hooks:
56
- go mod tidy
@@ -50,4 +51,4 @@ release:
5051
# Manually examine the release before its live
5152
draft: true
5253
changelog:
53-
skip: false
54+
use: github

0 commit comments

Comments
 (0)