...
- Add the following to your file
:deploy-repositories [["staging" {:sign-releases true
:url "https://repository.apache.org/service/local/staging/deploy/maven2"
:creds :gpg
:signing {:gpg-key "your key"} ;; this can be email of key-id
:snapshots true
:checksum :fail
:update :always
:releases {:checksum :fail :update :always}}]]- Also change the other respository name from staging to staging-downloads so there is no confusion
if it does not prompt for passphrase (known bug in OSX) - you can run
gpg --quiet --batch --decrypt ~/.lein/credentials.clj.gpg
Now you can run the deploy with lein deploy staging. You will be prompted for you gpg passphrase.
For automatic deploys in the future, we can look into more why this is prompting. It does not prompt for linux
- If you run into the error "gpg: signing failed: Inappropriate ioctl for device" - Run export GPG_TTY=$(tty)
Locate and Examine the Staging Repository
...