Skip to content

Commit

Permalink
test gpg upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ldennington committed Oct 16, 2023
1 parent 4e6b215 commit 0d72315
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,13 @@ jobs:
zip -jr win-x86-payload-and-symbols/gcm-win-x86-$VERSION.zip windows-artifacts/payload
zip -jr win-x86-payload-and-symbols/gcm-win-x86-$VERSION-symbols.zip windows-artifacts/symbols
- name: Retrieve public GPG key
run: |
az keyvault secret show --name gcm-gpg-public-base64 --vault-name \
signing-akv --query "value" | sed -e 's/^"//' -e 's/"$//' | base64 \
-D >gcm.asc
mv gcm.asc liunx-artifacts
- uses: actions/github-script@v6
with:
script: |
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/test-gpg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test-gpg

on: push

jobs:
test-key-download:
name: Download GPG Key
runs-on: ubuntu-latest
env:
PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY_SECRET_NAME }}
steps:
- run: |
az keyvault secret show --name "$PUBLIC_KEY" --vault-name \
signing-akv --query "value" | sed -e 's/^"//' -e 's/"$//' | \
base64 -d >gcm.asc
- name: Publish Key
uses: actions/upload-artifact@v3
with:
path: gcm.asc

0 comments on commit 0d72315

Please sign in to comment.