Skip to content

Commit c97abef

Browse files
committed
Switch back to env variables for creds
1 parent b74fba3 commit c97abef

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release-latest-version.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
java-version: '11'
1515
distribution: 'temurin'
1616
server-id: central
17-
server-username: ${{ secrets.OSSRH_USERNAME }}
18-
server-password: ${{ secrets.OSSRH_TOKEN }}
17+
server-username: MAVEN_USERNAME
18+
server-password: MAVEN_PASSWORD
1919
- id: install-secret-key
2020
name: Install gpg secret key
2121
run: |
@@ -26,4 +26,6 @@ jobs:
2626
gpg --list-secret-keys --keyid-format LONG
2727
- name: Publish package
2828
run: mvn -Prelease-sign-artifacts -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} --batch-mode deploy
29-
29+
env:
30+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
31+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)