Skip to content

Commit

Permalink
A bit more git commit signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Guardian Automated Maven Release committed Dec 2, 2023
1 parent f139338 commit 4338e12
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ jobs:
gpg-passphrase: PGP_PASSPHRASE
- name: Configure git
run: |
git config user.email "[email protected]"
git config user.name "Guardian Automated Maven Release"
key_fingerprint_and_email=$(gpg2 --list-secret-keys --list-options show-only-fpr-mbox)
key_fingerprint=$(echo $key_fingerprint_and_email | awk '{print $1}')
key_email=$(echo $key_fingerprint_and_email | awk '{print $2}')
git config user.email "$key_email"
git config user.name "$GITHUB_ACTOR using Guardian Automated Maven Release"
git config commit.gpgsign true
git config user.signingkey "$key_fingerprint"
- name: Publish the release
run: sbt "release with-defaults"
- name: Create Github Release
Expand Down

0 comments on commit 4338e12

Please sign in to comment.