Skip to content

Commit ebb7f24

Browse files
committed
Update release (#86)
1 parent ae1367f commit ebb7f24

File tree

5 files changed

+23
-27
lines changed

5 files changed

+23
-27
lines changed

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 'Feature request'
22
description: 'File a feature request'
33

44
labels:
5-
- 'enhancement'
5+
- 'enhancement'
66

77
body:
88
- type: 'markdown'

.github/workflows/release.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
- 'v*'
77

88
permissions:
9+
attestations: 'write'
910
contents: 'write'
11+
id-token: 'write'
1012
packages: 'write'
1113

1214
jobs:
@@ -15,30 +17,30 @@ jobs:
1517
steps:
1618
- uses: 'docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3' # ratchet:docker/setup-qemu-action@v3
1719

18-
- uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
20+
- uses: 'actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332' # ratchet:actions/checkout@v4
1921
with:
2022
fetch-depth: 0
2123

22-
- uses: 'actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491' # ratchet:actions/setup-go@v5
24+
- uses: 'actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7' # ratchet:actions/setup-go@v5
2325
with:
2426
go-version-file: 'go.mod'
2527

26-
- uses: 'docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20' # ratchet:docker/login-action@v3
28+
- uses: 'docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446' # ratchet:docker/login-action@v3
2729
with:
2830
registry: 'ghcr.io'
2931
username: '${{ github.actor }}'
3032
password: '${{ secrets.GITHUB_TOKEN }}'
3133

32-
- id: 'import_gpg'
33-
uses: 'crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4' # ratchet:crazy-max/ghaction-import-gpg@v6
34+
- uses: 'goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200' # ratchet:goreleaser/goreleaser-action@v6
35+
id: 'goreleaser'
3436
with:
35-
gpg_private_key: '${{ secrets.GPG_PRIVATE_KEY }}'
36-
passphrase: '${{ secrets.GPG_PASSPHRASE }}'
37-
38-
- uses: 'goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8' # ratchet:goreleaser/goreleaser-action@v5
39-
with:
40-
version: 'latest'
41-
args: 'release --rm-dist'
37+
version: '~> 2'
38+
args: 'release --clean --fail-fast'
4239
env:
43-
GPG_FINGERPRINT: '${{ steps.import_gpg.outputs.fingerprint }}'
4440
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
41+
42+
- uses: 'actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e' # ratchet:actions/attest-build-provenance@v1
43+
with:
44+
subject-path: |-
45+
dist/*.tar.gz
46+
dist/*.zip

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
test:
1818
runs-on: 'ubuntu-latest'
1919
steps:
20-
- uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
20+
- uses: 'actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332' # ratchet:actions/checkout@v4
2121

22-
- uses: 'actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491' # ratchet:actions/setup-go@v5
22+
- uses: 'actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7' # ratchet:actions/setup-go@v5
2323
with:
2424
go-version-file: 'go.mod'
2525

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ go.work
1818

1919
# For when someone runs "go build" locally
2020
ratchet
21+
22+
# For when someone runs goreleaser locally
23+
dist/

.goreleaser.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
before:
24
hooks:
35
- 'go mod tidy'
@@ -96,17 +98,6 @@ checksum:
9698
name_template: 'ratchet_{{ .Version }}_SHA512SUMS'
9799
algorithm: 'sha512'
98100

99-
signs:
100-
- artifacts: 'checksum'
101-
args:
102-
- '--batch'
103-
- '--local-user'
104-
- '{{ .Env.GPG_FINGERPRINT }}'
105-
- '--output'
106-
- '${signature}'
107-
- '--detach-sign'
108-
- '${artifact}'
109-
110101
changelog:
111102
use: 'github'
112103

0 commit comments

Comments
 (0)