Skip to content

Commit dcd0240

Browse files
committed
Update deploy.yml config.
Signed-off-by: Manoel Campos <[email protected]>
1 parent 11a7e2d commit dcd0240

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)