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#
1212name : release
@@ -20,15 +20,15 @@ jobs:
2020 steps :
2121 -
2222 name : Checkout
23- uses : actions/checkout@v2
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@v2
29+ uses : actions/setup-go@v4
3030 with :
31- go-version : 1.17
31+ go-version : 1.21
3232 -
3333 name : Import GPG key
3434 id : import_gpg
@@ -38,10 +38,10 @@ jobs:
3838 PASSPHRASE : ${{ secrets.PASSPHRASE }}
3939 -
4040 name : Run GoReleaser
41- uses : goreleaser/goreleaser-action@v2
41+ uses : goreleaser/goreleaser-action@v1
4242 with :
4343 version : latest
44- args : release --rm-dist
44+ args : release
4545 env :
4646 GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
4747 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments