Skip to content

Commit b56831a

Browse files
committed
more goreleaser updates
1 parent b20890f commit b56831a

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# This GitHub action can publish assets for release when a tag is created.
2-
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
3-
#
4-
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
5-
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
6-
# secret. If you would rather own your own GPG handling, please fork this action
7-
# or use an alternative one for key handling.
8-
#
9-
# You will need to pass the `--batch` flag to `gpg` in your signing step
10-
# in `goreleaser` to indicate this is being used in a non-interactive mode.
11-
#
121
name: release
132
on:
143
push:
@@ -21,9 +10,8 @@ jobs:
2110
-
2211
name: Checkout
2312
uses: actions/checkout@v4
24-
-
25-
name: Unshallow
26-
run: git fetch --prune --unshallow
13+
with:
14+
fetch-depth: 0
2715
-
2816
name: Set up Go
2917
uses: actions/setup-go@v5
@@ -32,13 +20,13 @@ jobs:
3220
-
3321
name: Import GPG key
3422
id: import_gpg
35-
uses: crazy-max/ghaction-import-gpg@v4
23+
uses: crazy-max/ghaction-import-gpg@v6
3624
with:
3725
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3826
passphrase: ${{ secrets.PASSPHRASE }}
3927
-
4028
name: Run GoReleaser
41-
uses: goreleaser/goreleaser-action@v6.0.0
29+
uses: goreleaser/goreleaser-action@v6
4230
with:
4331
version: latest
4432
args: release --clean

0 commit comments

Comments
 (0)