Skip to content

Commit 333caea

Browse files
committed
ci: [skip ci] Adding gpg signature of binary
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
1 parent a87bee3 commit 333caea

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
tag:
3030
name: Release
3131
runs-on: ubuntu-latest
32+
env:
33+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3234
steps:
3335
- name: Checkout
3436
uses: actions/checkout@v3
@@ -38,9 +40,16 @@ jobs:
3840
go-version: "^1.19"
3941
- name: Build
4042
run: make init
43+
- name: GPG
44+
id: import_gpg
45+
if: ${{ env.gpg_private_key != '' }}
46+
uses: crazy-max/ghaction-import-gpg@v4
47+
with:
48+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
4149
- name: Assets
4250
env:
4351
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
4453
run: |
4554
curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/main/bootstrap" | bash -s -- "-c" "release"
4655
export GIT_TAG="$(basename ${{ github.ref }})"

0 commit comments

Comments
 (0)