-
Notifications
You must be signed in to change notification settings - Fork 33
Fix Release Workflow to publish in Maven Central. #489
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
Conversation
|
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
| server-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
| server-username: MAVEN_CENTRAL_USERNAME | ||
| server-password: MAVEN_CENTRAL_PASSWORD | ||
| gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} |
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.
What is the issue with the old way?
Why it does not apply to the private key?
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.
I just changed this to the old behavior that we changed here. I actually can't figure out where this key is exactly used.
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 issue with the current behaviour is that the secret is passed in the format of {env.Secret}. Which corrupts the secret.
| - name: Run Release Dry-Run (Verify) | ||
| if: "!startsWith(github.ref, 'refs/tags/')" | ||
| run: mvn -Prelease -DskipTests=true --batch-mode verify | ||
| env: |
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 private key needed 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.
ditto reason.
I just changed this to the old behavior that we changed here. I actually can't figure out where this key is exactly used.
What changes are proposed in this pull request?
This fixes three things in the release workflow:
How is this tested?
Manually tested.
NO_CHANGELOG=true