Skip to content

Commit c794a64

Browse files
committed
fix: Update to latest goreleaser GH action
1 parent 7cfad7a commit c794a64

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build
22

33
on:
44
push:
5-
branches: ["*"]
5+
branches: ["**"]
66

77
jobs:
88
build:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
username: ${{ secrets.DOCKER_USER }}
3434
password: ${{ secrets.DOCKER_PASS }}
3535
- name: Release
36-
uses: goreleaser/goreleaser-action@v1
36+
uses: goreleaser/goreleaser-action@v6
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
with:
4040
version: latest
41-
args: release
41+
args: release --clean
4242
- name: "Configure AWS Credentials"
4343
uses: aws-actions/configure-aws-credentials@v1
4444
with:

.goreleaser.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
builds:
24
- env:
35
- CGO_ENABLED=0
@@ -7,24 +9,18 @@ builds:
79
- darwin
810
ldflags:
911
- -s -w -X github.com/codacy/pulse-event-cli/internal/build.Version={{.Version}} -X github.com/codacy/pulse-event-cli/internal/build.Date={{time "2006-01-02"}}
10-
archives:
11-
- replacements:
12-
darwin: Darwin
13-
linux: Linux
14-
windows: Windows
15-
386: i386
1612
checksum:
1713
name_template: "checksums.txt"
1814
snapshot:
19-
name_template: "{{ .Tag }}"
15+
version_template: "{{ .Tag }}"
2016
changelog:
2117
sort: asc
2218
filters:
2319
exclude:
2420
- "^docs:"
2521
- "^test:"
26-
dockers:
27-
- image_templates:
22+
dockers_v2:
23+
- images:
2824
- "codacy/pulse-event-cli:{{ .Tag }}"
2925
- "codacy/pulse-event-cli:v{{ .Major }}"
3026
- "codacy/pulse-event-cli:v{{ .Major }}.{{ .Minor }}"

0 commit comments

Comments
 (0)