I’m stuck trying to set up a Maven deploy using GitHub Actions. The process keeps failing because of a GPG signing issue. Here’s the error I’m getting:
gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
[INFO] BUILD FAILURE
I know I need to import my GPG secret key into the virtual runner where the workflow is running. But I can’t figure out how to do this through the GitHub Actions workflow.
My current workflow yaml file includes steps for setting up Maven Central Repository, displaying settings.xml, building the Maven project, and attempting to publish to Apache Maven Central.
Does anyone know how to properly import a GPG secret key in this setup? I’ve tried a few things but nothing seems to work. Any help would be appreciated!