Skip to content

Commit d666173

Browse files
committed
fixup! chore: pre-publish tidy
1 parent 9e94a49 commit d666173

File tree

1 file changed

+30
-31
lines changed

1 file changed

+30
-31
lines changed

.github/workflows/release.yml

+30-31
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
11
name: release
22

33
on:
4-
push:
5-
tags:
6-
- 'v*'
4+
push:
5+
tags:
6+
- "v*"
77

88
permissions:
9-
contents: write
9+
contents: write
1010

11-
ethanndickson marked this conversation as resolved.
1211
jobs:
13-
goreleaser:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v4
18-
- name: Unshallow
19-
run: git fetch --prune --unshallow
20-
- name: Setup Go
21-
uses: actions/setup-go@v5
22-
with:
23-
go-version: 1.22.4
24-
- name: Import GPG Key
25-
id: import_gpg
26-
uses: crazy-max/[email protected]
27-
with:
28-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
29-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
30-
- name: Run GoReleaser
31-
uses: goreleaser/[email protected]
32-
with:
33-
version: latest
34-
args: release --clean
35-
env:
36-
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
37-
# GitHub sets this automatically
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Unshallow
18+
run: git fetch --prune --unshallow
19+
- name: Setup Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: 1.22.4
23+
- name: Import GPG Key
24+
id: import_gpg
25+
uses: crazy-max/[email protected]
26+
with:
27+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
28+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
29+
- name: Run GoReleaser
30+
uses: goreleaser/[email protected]
31+
with:
32+
version: latest
33+
args: release --clean
34+
env:
35+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
36+
# GitHub sets this automatically
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)