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

fix: Update publish flow #17

Merged
merged 1 commit into from
Aug 21, 2024
Merged

fix: Update publish flow #17

merged 1 commit into from
Aug 21, 2024

Conversation

martinalbert
Copy link
Contributor

Description

PR fixes the publish workflow with following changes:

1. use environment variable names instead of actual values in setup-java

This is needed due to generation of settings.xml within setup-java action. We want to have the xml file in format to contain credentials as:
<username>${env.OSSRH_USERNAME}</username>
not as:
<username>${env.***}</username>

2. make actual values accessible only at deploy step

This ensures we import github secrets as environment variables accessible in settings.xml which are used by deploy step.

3. add configuration to maven-gpg-plugin to ensure passphrase is provided directly from an environment variable

This is self-describing, adding missing configuration for gpg plugin.

Copy link

@Toreno96 Toreno96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- use environment variable names instead of actual values in setup-java
- make actual values accessible only at deploy step
- add configuration to `maven-gpg-plugin` to ensure passphrase is provided directly from an environment variable
@ViolanteCodes ViolanteCodes merged commit 7b2e450 into master Aug 21, 2024
4 checks passed
@ViolanteCodes ViolanteCodes deleted the fix/use-gpg-properly branch August 21, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants