Merge pull request #1321 from sundowndev/release-gpg-signing

Release GPG signing
This commit is contained in:
Raphaël authored and GitHub committed 2023-08-17 14:31:52 +04:00
commit 8dfb5aa1a1
2 files changed
+12

No files matched your search

+8
View File
@@ -25,6 +25,13 @@ jobs:
with:
go-version: 1.20.6
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Building static assets
run: (cd web/client && yarn install --immutable && yarn build)
@@ -38,6 +45,7 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
docker:
runs-on: ubuntu-latest
if: contains(toJson(github.event.commits), '[action]') == false
+4
View File
@@ -2,6 +2,10 @@ before:
hooks:
- go generate ./...
- go mod download
signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
signature: "${artifact}.gpg"
builds:
- env:
- CGO_ENABLED=0