mirror of
https://github.com/sundowndev/phoneinfoga.git
synced 2026-11-04 12:04:37 +00:00
Merge pull request #1321 from sundowndev/release-gpg-signing
Release GPG signing
This commit is contained in:
2 files changed
+12
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user