File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,11 @@ jobs:
2323 # The key to assing to OSSRH_GPG_SECRET_KEY can be got running on your PC: gpg -a --export-secret-keys KEY_ID
2424 # The KEY_ID can be got from the GPG Keyhain.
2525 # The OSSRH_GPG_SECRET_KEY_PASSWORD is in macOS keychain (GPG Key password)
26- # OSSRH_USERNAME and OSSRH_TOKEN (password) and is available at ~/.m2/settings.xml
26+ # OSSRH_USERNAME and OSSRH_TOKEN (password) are available at ~/.m2/settings.xml
2727 cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
2828 gpg --list-keys
2929 - name : Publish package
30- run : |
31- # Set some environment variables needed by Nexus Staging Maven plugin on JDK 17,
32- # until https://issues.sonatype.org/browse/OSSRH-66257 is resolved
33- export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
34- mvn --no-transfer-progress -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} --batch-mode -Psonatype deploy
30+ run : mvn --no-transfer-progress -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} --batch-mode -Psonatype deploy
3531 env :
3632 MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
3733 MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
You can’t perform that action at this time.
0 commit comments