Skip to content

Commit

Permalink
Merge pull request #50 from bgpat/bgpat-patch-1
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
bgpat authored Mar 7, 2024
2 parents 1214577 + e32d245 commit 005b7e6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
#
# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
# This uses an action (crazy-max/ghaction-import-gpg) that assumes you set your
# private key in the `gpg_private_key` secret and passphrase in the `passphrase`
# secret. If you would rather own your own GPG handling, please fork this action
# or use an alternative one for key handling.
#
Expand All @@ -14,6 +14,8 @@ on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
Expand All @@ -29,19 +31,20 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
-
name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 005b7e6

Please sign in to comment.