Skip to content

Commit

Permalink
Sign releases
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaIyer committed Jan 20, 2023
1 parent bad6909 commit 66e553a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: '~1.19'
- name: Get the signing key
run: |
echo -n ${{ secrets.GPG_SIGNING_KEY }} | base64 --decode > /tmp/gpg_signing.key
printf '%s' '${{ secrets.GPG_PASSPHRASE }}' >/tmp/gpg_passphrase
cat /tmp/gpg_passphrase | gpg --passphrase-fd 0 --no-tty --batch --import /tmp/gpg_signing.key
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
SIGN_KEY_NAME: ${{ secrets.SIGN_KEY_NAME }}

0 comments on commit 66e553a

Please sign in to comment.