-
Notifications
You must be signed in to change notification settings - Fork 14
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
Setup deployment to GitHub package registry for Gradle artifacts #26
Setup deployment to GitHub package registry for Gradle artifacts #26
Conversation
@carlspring Requesting review |
hello-strongbox-gradle/build.gradle
Outdated
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME") | ||
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to have Github secrets defined for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, GITHUB_USERNAME
is sourced from actions/setup-java
while GITHUB_TOKEN
is automatically set by GitHub for each repository.
I'll document this here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, thank you very much! :)
It might be worth mentioning all this in the master task for future reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's a good idea. I'll drop in a comment there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a minor change in the URL for when we merge this in.
Thanks! :)
Thanks for your help! :) |
Refs strongbox/strongbox#1927
Published artifact: https://github.com/j4ckofalltrades/strongbox-examples/packages/472460?version=1.0-SNAPSHOT
Note: Not sure if adding a description to artifact is possible at this time, I read through the maven-publish and GitHub docs but couldn't find anything.