-
Notifications
You must be signed in to change notification settings - Fork 1
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
AUTHLIB-153: Adding workflow to publish SNAPSHOT jars #3
Conversation
@@ -29,4 +29,18 @@ jobs: | |||
|
|||
- name: Build with Maven | |||
run: mvn package | |||
|
|||
# Extract version from pom.xml | |||
- name: Get Version from POM |
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.
The comments don't really add anything that isn't explained by the step name. I'd probably remove them.
.github/workflows/build.yaml
Outdated
|
||
#Publish jar if `SNAPSHOT` is present in the version | ||
- name: Publish SNAPSHOT JAR | ||
if: contains(env.version, '-SNAPSHOT') |
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.
The other condition is that we only want to do this when code is merged to the main
branch.
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.
It also looks like you need to add packages: write
permission to the job.
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.
This was easier than I expected. Feel free to merge once you've addressed my comments.
Made the suggested changes. It did behave the way it is expected to. It did not publish the JAR it generated. Once I merge it now, it should publish that JAR, I believe. Merging this PR now |
Overview
Added workflow to publish SNAPSHOT jars
Issues
AUTHLIB-153
Discussion
.github/workflows/build.yaml
workflow to check if the version in project'spom.xml
has the keywordSNAPSHOT