Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename GPG public key in releases #1294

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/scripts/sign-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ main() {
chmod 700 gpghome
echo "$GPG_SECRET_KEY" | gpg --homedir gpghome --batch --import
gpg --homedir gpghome --list-secret-keys
gpg --homedir gpghome --export --armor [email protected] > ./package/gpg-public.key
gpg --homedir gpghome --export --armor [email protected] > ./package/public-key.gpg
cd ./package
find . -type f -print | grep -v CHECKSUM | sort -n | xargs -I '{}' sha256sum '{}' > ./CHECKSUM
gpg --homedir ../gpghome --clear-sign ./CHECKSUM
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scripts/verify-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ You must see:
\`\`\`
./***YOUR_ASSET_FILE***: OK
\`\`\`
* **Step 5**: Download the public key file from this link [gpg-public.key](${DOWNLOAD_URL_BASE}/gpg-public.key) and save it in the same folder as the asset
* **Step 5**: Download the public key file from this link [public-key.gpg](${DOWNLOAD_URL_BASE}/public-key.gpg) and save it in the same folder as the asset
* **Step 6**: Then import the GPG public key:
\`\`\`
gpg --import ./gpg-public.key
gpg --import ./public-key.gpg
\`\`\`
You must see something like:
\`\`\`
Expand All @@ -64,7 +64,7 @@ gpg: imported: 1
\`\`\`
* **Step 7**: Then verify the GPG signature of the checksum file:
\`\`\`
gpg --verify ./gpg-public.key ./CHECKSUM.asc
gpg --verify ./public-key.gpg ./CHECKSUM.asc
\`\`\`
You must see something like:
\`\`\`
Expand Down