Skip to content

Commit 432c19a

Browse files
Fix goreleaser using version 2.0
1 parent 357ad0b commit 432c19a

File tree

2 files changed

+25
-33
lines changed

2 files changed

+25
-33
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: macos-latest-large
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323

@@ -28,9 +28,9 @@ jobs:
2828
# password: ${{ secrets.DOCKER_PASSWORD }}
2929

3030
- name: Set up Go
31-
uses: actions/setup-go@v3
31+
uses: actions/setup-go@v5
3232
with:
33-
go-version: 1.23
33+
go-version: 1.24.1
3434

3535
- name: Set Tag Name
3636
id: tagName
@@ -62,8 +62,8 @@ jobs:
6262
- name: Run GoReleaser
6363
uses: goreleaser/goreleaser-action@v6
6464
with:
65-
version: "latest"
66-
args: release
65+
version: "2.8.2"
66+
args: release --clean --verbose
6767
env:
6868
GITHUB_TOKEN: ${{secrets.PUBLISHER_TOKEN}}
6969
GORELEASER_CURRENT_TAG: ${{steps.tagName.outputs.tag-name}}

.goreleaser.yaml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@ before:
1212
- go mod tidy
1313

1414
builds:
15-
- <<: &build_defaults
16-
binary: bin/sail
17-
main: ./
18-
id: macos
19-
goos: [darwin]
20-
goarch: [amd64, arm64]
21-
22-
- <<: *build_defaults
23-
id: linux
24-
goos: [linux]
25-
goarch: [386, arm, amd64, arm64]
15+
- id: windows
16+
goos: [windows]
17+
goarch: ['386', amd64, arm64]
2618
env:
2719
- CGO_ENABLED=0
28-
29-
- <<: *build_defaults
30-
id: windows
31-
goos: [windows]
32-
goarch: [386, amd64, arm64]
20+
ldflags:
21+
- -s -w -X main.version={{ .Version }}
3322
hooks:
3423
post:
3524
- cmd: ./assets/sign-windows-executable.sh '{{ .Path }}'
3625
output: true
3726

27+
- id: linux
28+
goos: [linux]
29+
goarch: ['386', arm, amd64, arm64]
30+
env:
31+
- CGO_ENABLED=0
32+
33+
- id: macos
34+
binary: bin/sail
35+
main: ./
36+
goos: [darwin]
37+
goarch: [amd64, arm64]
38+
3839
archives:
3940
- id: nix
4041
ids: [macos, linux]
41-
<<: &archive_defaults
42-
name_template: >-
42+
name_template: >-
4343
{{- .ProjectName }}_
4444
{{- title .Os }}_
4545
{{- if eq .Arch "amd64" }}x86_64
@@ -50,22 +50,14 @@ archives:
5050
formats: tar.gz
5151
files:
5252
- LICENSE
53+
5354
- id: windows
5455
ids: [windows]
55-
<<: *archive_defaults
56-
wrap_in_directory: false
5756
formats: zip
57+
wrap_in_directory: false
5858
files:
5959
- LICENSE
6060

61-
# dockers:
62-
# - image_templates:
63-
# - sailpoint/sailpoint-cli:{{.Tag}}
64-
# use: buildx
65-
# dockerfile: Dockerfile
66-
# build_flag_templates:
67-
# - "--platform=linux/amd64"
68-
6961
brews:
7062
- name: sailpoint-cli
7163
homepage: "https://github.com/sailpoint-oss/sailpoint-cli"

0 commit comments

Comments
 (0)