Skip to content

Commit

Permalink
Replace PGP env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-kaufman committed Sep 5, 2024
1 parent f2d186a commit 06bd30a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pgp-sign-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:

- name: Import GPG key
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }}
PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }}
run: |
echo "$TAURI_PRIVATE_KEY" | gpg --batch --yes --import
echo "$TAURI_KEY_PASSWORD" | gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback --change-passphrase $(gpg --list-secret-keys --with-colons | awk -F: '/^sec:/ { print $5 }')
echo "$PGP_PRIVATE_KEY" | gpg --batch --yes --import
echo "$PGP_PASSWORD" | gpg --batch --yes --passphrase-fd 0 --pinentry-mode loopback --change-passphrase $(gpg --list-secret-keys --with-colons | awk -F: '/^sec:/ { print $5 }')
- name: Create and Sign SHA256SUMS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }}
run: |
version=$(grep '^version =' src-tauri/Cargo.toml | cut -d '"' -f2)
echo "Version: $version"
Expand All @@ -55,7 +55,7 @@ jobs:
sha256sum * > SHA256SUMS.txt
# Sign SHA256SUMS.txt
gpg --batch --yes --passphrase "$TAURI_KEY_PASSWORD" --pinentry-mode loopback --clearsign SHA256SUMS.txt
gpg --batch --yes --passphrase "$PGP_PASSWORD" --pinentry-mode loopback --clearsign SHA256SUMS.txt
# Upload SHA256SUMS.txt and SHA256SUMS.txt.asc
gh release upload "$tagName" SHA256SUMS.txt SHA256SUMS.txt.asc --clobber
Expand Down
1 change: 1 addition & 0 deletions temp_key.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5TU8rb1p3dC80L2syVU5hTUt2a3pxUXdtTGE3ZUR5WklaeTBuVERlY3ZKNEFBQkFBQUFBQUFBQUFBQUlBQUFBQUtjQ054RlhhZFY2bTQ4NElBOThMVEJwcU9qY3g3TlBUMkFXZkNtWk0wcE5TUm1ybjZlNmtVYWpyS2U2V2Y5Ylgzcjh6amxTKzhFM083ckhDTWlmc1JEVzhGRmRXVE5XUHZBT2xwNlJsR0U2YXRFL3U2S0E1aTdPdkovRmplRUFVSXhNQmFYd0hpQkk9Cg==

0 comments on commit 06bd30a

Please sign in to comment.