This repository was archived by the owner on Jul 16, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,11 +75,14 @@ jobs:
7575 echo -n "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --import --no-tty --batch --yes
7676 echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
7777 gpgconf --kill gpg-agent
78+ # Extract key ID from imported key so we don't need a separate secret
79+ GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format long --with-colons | grep ^sec | head -1 | cut -d: -f5)
80+ echo "GPG_KEY_ID=$GPG_KEY_ID" >> "$GITHUB_ENV"
81+ echo "Imported GPG key: $GPG_KEY_ID"
7882 - name : Sign and upload package
7983 if : steps.check_source.outputs.already_uploaded != 'true'
8084 env :
8185 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
82- GPG_KEY_ID : ${{ secrets.GPG_KEY_ID }}
8386 run : make sign-and-upload
8487 - name : Cleanup credentials
8588 if : always()
You can’t perform that action at this time.
0 commit comments