Table of Contents
For Signing the code artifacts, precondition for uploading to maven-central We need a gpg-signing key
Starting with Jose Carvajal excellent introduction: Deploy Your GitHub Project to Maven Central from GitHub actions → Thanks a lot for sharing
-
Install the GPG tool
-
Generate a new key-par using 'gpg --generate-key'
-
gpg --list-keys:
pub rsa3072 2022-12-04 [SC] [verfällt: 2024-12-03]
D6A0*****
uid [ ultimativ ] ****>
sub rsa3072 2022-12-04 [E] [verfällt: 2024-12-03]
-
gpg --keyserver keyserver.ubuntu.com --send-keys D6A0* Optional, to speed things up, not strictly necessary:
-
gpg --keyserver eys.openpgp.org --send-keys D6A0*
-
gpg --keyserver pgp.mit.edu --send-keys D6A0*
gpg --armor --export-secret-key joe@foo.bar | pbcopy
gpg --armor --export-secret-key joe@foo.bar -w0 | xclip