Skip to content

Commit 550fd67

Browse files
authored
Update go.yml
1 parent 53efc18 commit 550fd67

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/go.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This GitHub action can publish assets for release when a tag is created.
22
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
33
#
4-
# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your
4+
# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your
55
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
66
# secret. If you would rather own your own GPG handling, please fork this action
77
# or use an alternative one for key handling.
88
#
9-
# You will need to pass the `--batch` flag to `gpg` in your signing step
9+
# You will need to pass the `--batch` flag to `gpg` in your signing step
1010
# in `goreleaser` to indicate this is being used in a non-interactive mode.
1111
#
1212
name: release
@@ -20,29 +20,29 @@ jobs:
2020
steps:
2121
-
2222
name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424
-
2525
name: Unshallow
2626
run: git fetch --prune --unshallow
2727
-
2828
name: Set up Go
29-
uses: actions/setup-go@v3
29+
uses: actions/setup-go@v5
3030
with:
31-
go-version: '>=1.20'
31+
go-version: '>=1.22'
3232
check-latest: true
3333
-
3434
name: Import GPG key
3535
id: import_gpg
36-
uses: crazy-max/ghaction-import-gpg@v5
36+
uses: crazy-max/ghaction-import-gpg@v6
3737
with:
3838
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3939
passphrase: ${{ secrets.PASSPHRASE }}
4040
-
4141
name: Run GoReleaser
42-
uses: goreleaser/goreleaser-action@v4
42+
uses: goreleaser/goreleaser-action@v6
4343
with:
4444
distribution: goreleaser
45-
version: latest
45+
version: '~> v2'
4646
args: release --clean
4747
env:
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)