Skip to content

Commit

Permalink
Merge pull request #1294 from input-output-hk/jpraynaud/1292-rename-g…
Browse files Browse the repository at this point in the history
…pg-public-key-release

Rename GPG public key in releases
  • Loading branch information
jpraynaud authored Oct 16, 2023
2 parents 737ed8a + 358788e commit 5d3de6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 5d3de6d

Please sign in to comment.