Skip to content

Instantly share code, notes, and snippets.

@Nageshks
Forked from lopspower/README.md
Last active May 3, 2022 05:57
Show Gist options
  • Save Nageshks/e155c1b67617b71eac184a16cecad258 to your computer and use it in GitHub Desktop.
Save Nageshks/e155c1b67617b71eac184a16cecad258 to your computer and use it in GitHub Desktop.
Publish AAR to Maven Central

Handle your GPG

UNIX/MAC: You can find respectively these two keys in files public_key_sender.asc and private_key_sender.asc if you execute the following code (the -a or --armor option in gpgis used to generate ASCII-armored key pair):

gpg --gen-key    # generates the key pair
gpg --full-gen-key
gpg --list-keys  # get your PubKeyId (this value is used in the line below)
gpg --keyserver keyserver.ubuntu.com --send-keys PubKeyId  # publish your Key
gpg -a --export [email protected] > public_key_sender.asc
gpg -a --export-secret-key [email protected] > private_key_sender.asc
gpg --export-secret-keys id > privateKey.gpg

WINDOWS: Generated your gpg key with http://www.gpg4win.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment