Skip to content

Commit 1ab3b1c

Browse files
committed
Update release action
1 parent ef2552d commit 1ab3b1c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
21
# This GitHub action can publish assets for release when a tag is created.
32
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
43
#
5-
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
4+
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
65
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
76
# secret. If you would rather own your own GPG handling, please fork this action
87
# or use an alternative one for key handling.
98
#
10-
# 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
1110
# in `goreleaser` to indicate this is being used in a non-interactive mode.
1211
#
1312
name: release
@@ -21,15 +20,16 @@ jobs:
2120
steps:
2221
-
2322
name: Checkout
24-
uses: actions/checkout@v2.4.0
23+
uses: actions/checkout@v3
2524
-
2625
name: Unshallow
2726
run: git fetch --prune --unshallow
2827
-
2928
name: Set up Go
30-
uses: actions/setup-go@v2
29+
uses: actions/setup-go@v3
3130
with:
32-
go-version: 1.17
31+
go-version-file: 'go.mod'
32+
cache: true
3333
-
3434
name: Import GPG key
3535
id: import_gpg
@@ -40,7 +40,7 @@ jobs:
4040
PASSPHRASE: ${{ secrets.PASSPHRASE }}
4141
-
4242
name: Run GoReleaser
43-
uses: goreleaser/goreleaser-action@v2
43+
uses: goreleaser/goreleaser-action@v3.0.0
4444
with:
4545
version: latest
4646
args: release --rm-dist

0 commit comments

Comments
 (0)