Skip to content

Commit 4cef571

Browse files
authored
ci: update release configuration and workflow (#20)
1 parent 32c7825 commit 4cef571

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
go-version: 1.23
2020

2121
- name: Build and publish release artifacts
22-
uses: goreleaser/goreleaser-action@v2
22+
uses: goreleaser/goreleaser-action@v6
2323
with:
24-
version: latest
25-
args: release
24+
# https://github.com/goreleaser/goreleaser/releases/tag/v2.9.0
25+
version: v2.9.0
26+
args: release --clean
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2829
HOMEBREW_GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
project_name: aws-saml
1+
version: 2
22

33
builds:
4-
- id: aws-saml
5-
binary: aws-saml
4+
- goos:
5+
- linux
6+
- darwin
67

7-
targets:
8-
- darwin_amd64
9-
- darwin_arm64
10-
- linux_amd64
8+
goarch:
9+
- amd64
10+
- arm64
1111

1212
flags:
1313
- -buildvcs=false
@@ -24,7 +24,8 @@ builds:
2424
- CGO_ENABLED=0
2525

2626
archives:
27-
- id: aws-saml
27+
- formats:
28+
- tar.gz
2829
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
2930

3031
release:
@@ -35,12 +36,12 @@ checksum:
3536
name_template: "checksums.txt"
3637

3738
changelog:
38-
skip: true
39+
disable: true
3940

4041
brews:
4142
- name: aws-saml
4243

43-
tap:
44+
repository:
4445
owner: joshdk
4546
name: homebrew-tap
4647
token: "{{ .Env.HOMEBREW_GITHUB_TOKEN }}"
@@ -52,7 +53,7 @@ brews:
5253
name: Josh Komoroske
5354
email: jdkomo@gmail.com
5455

55-
folder: Formula
56+
directory: Formula
5657

5758
caveats: "Run aws-saml --help for usage"
5859
homepage: "https://github.com/joshdk/aws-saml"

0 commit comments

Comments
 (0)