Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Commit e6c2765

Browse files
committed
Fix release build automation (hopefully)
1 parent 27fdedb commit e6c2765

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ on:
1313
permissions:
1414
contents: write
1515

16-
# Default values to simplify job configurations below.
17-
env:
18-
# Go language version to use for building. This value should also be updated
19-
# in the testing workflow if changed.
20-
GO_VERSION: '1.19'
21-
2216
jobs:
2317
goreleaser:
2418
runs-on: ubuntu-latest
@@ -29,20 +23,16 @@ jobs:
2923
fetch-depth: 0
3024
- uses: actions/setup-go@v3
3125
with:
32-
go-version: ${{ env.GO_VERSION }}
33-
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
34-
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
35-
# secret. If you would rather own your own GPG handling, please fork this action
36-
# or use an alternative one for key handling.
26+
go-version-file: 'go.mod'
27+
cache: true
3728
- name: Import GPG key
29+
uses: crazy-max/ghaction-import-gpg@v5
3830
id: import_gpg
39-
uses: hashicorp/[email protected]
40-
env:
41-
# These secrets will need to be configured for the repository:
42-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
43-
PASSPHRASE: ${{ secrets.PASSPHRASE }}
31+
with:
32+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
33+
passphrase: ${{ secrets.PASSPHRASE }}
4434
- name: Run GoReleaser
45-
uses: goreleaser/goreleaser-action@v3.1.0
35+
uses: goreleaser/goreleaser-action@v3
4636
with:
4737
args: release --rm-dist
4838
env:

0 commit comments

Comments
 (0)