mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
fix: add --with-fingerprint for GPG trust setup on CI (#2572)
Co-authored-by: Nazim <nazim@openclaw.ai>
This commit is contained in:
parent
88e0f58c41
commit
bc58dfab2a
1 changed files with 3 additions and 2 deletions
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
|
@ -537,9 +537,10 @@ jobs:
|
|||
run: |
|
||||
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
|
||||
# Set ultimate trust so GPG will use the key on a fresh runner
|
||||
FPR=$(gpg --list-secret-keys --with-colons 2>/dev/null | grep '^fpr' | head -1 | cut -d: -f10)
|
||||
FPR=$(gpg --list-secret-keys --with-colons --with-fingerprint 2>/dev/null | awk -F: '/^fpr/{print $10; exit}')
|
||||
echo "Fingerprint: $FPR"
|
||||
echo "${FPR}:6:" | gpg --import-ownertrust
|
||||
KEY_ID=$(gpg --list-secret-keys --keyid-format long --with-colons 2>/dev/null | grep '^sec' | head -1 | cut -d: -f5)
|
||||
KEY_ID=$(gpg --list-secret-keys --keyid-format long --with-colons 2>/dev/null | awk -F: '/^sec/{print $5; exit}')
|
||||
echo "Signing with key: $KEY_ID"
|
||||
cd release-files
|
||||
if [ -n "$GPG_PASSPHRASE" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue