From 29d96055c12bd5afb91e9ad226137f3de3799a8a Mon Sep 17 00:00:00 2001 From: Lessley Date: Mon, 16 Oct 2023 14:03:50 -0600 Subject: [PATCH] test gpg upload --- .github/workflows/release.yml | 7 +++++++ .github/workflows/test-gpg.yml | 21 +++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/test-gpg.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c57a5a545..da44ec5ed5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | diff --git a/.github/workflows/test-gpg.yml b/.github/workflows/test-gpg.yml new file mode 100644 index 0000000000..591eaddeb6 --- /dev/null +++ b/.github/workflows/test-gpg.yml @@ -0,0 +1,21 @@ +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 }} + environment: release + 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