Skip to content

Commit 28044f0

Browse files
authored
ci: update goreleaser-action (#68)
Replace deprecated arg in goreleaser-action and update the action version. Update config to v2. Signed-off-by: Ville Vesilehto <ville.vesilehto@upcloud.com>
1 parent 62d5e18 commit 28044f0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
passphrase: ${{ secrets.PASSPHRASE }}
3131

3232
- name: Run GoReleaser
33-
uses: goreleaser/goreleaser-action@b953231f81b8dfd023c58e0854a721e35037f28b # v2.9.1
33+
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
3434
with:
3535
version: latest
36-
args: release --rm-dist
36+
args: release --clean
3737
env:
3838
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
env:
23
- CGO_ENABLED=0
34
before:
@@ -40,7 +41,9 @@ builds:
4041
goarch: amd64
4142
binary: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}"
4243
archives:
43-
- format: zip
44+
-
45+
format_overrides:
46+
- formats: ['zip']
4447
files:
4548
- none*
4649
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}"
@@ -61,4 +64,4 @@ release:
6164
draft: true
6265

6366
changelog:
64-
skip: true
67+
disable: true

0 commit comments

Comments
 (0)