Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding credentials example for in-memory key to documentation #773

Open
thesurlydev opened this issue May 3, 2024 · 2 comments

Comments

@thesurlydev
Copy link

The current docs (https://vanniktech.github.io/gradle-maven-publish-plugin/central/#secrets) only show an example of setting credentials when using a secretKeyRingFile.

I found that when using an exported in-memory key, the following works:

signingInMemoryKey=lQdGBF4jUfwBEtEpr64iB9b6YRkWil3EODiiLd9JS3V...9pip+B1QLwEdLCEJA+3IIiw4qM5hnMw=
signingInMemoryKeyId=your_key_id
signingInMemoryKeyPassword=your_password

It wasn't until I looked at the source code that I realized this was possible.

@iRYO400
Copy link

iRYO400 commented May 24, 2024

@thesurlydev I found out that too, but that keys doesn't work on Github Actions, because GA's secrets are not case sensetive. I'm trapped :(

@gabrielittner
Copy link
Collaborator

It's described in the environment variables tab on the page you linked to. The idea was that the in memory key is probably a thing mostly used on CI. I'll completely split in memory vs keyring in the docs to make it more obvious and the in memory docs will get both a property and an env var example.
Screenshot 2024-05-24 at 23 51 14

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

No branches or pull requests

3 participants