Skip to content

Commit 516515d

Browse files
author
Vignesh Kennadi
committed
corrected getting secrets
1 parent d2bc4eb commit 516515d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
java-version: '11'
2323
cache: maven
2424
server-id: ossrh
25-
server-username: ${{ secrets.MAVEN_USERNAME }}
26-
server-password: ${{ secrets.MAVEN_TOKEN }}
25+
server-username: MAVEN_USERNAME
26+
server-password: MAVEN_PASSWORD
2727

2828
- name: Import GPG Key
2929
run: |
@@ -35,4 +35,7 @@ jobs:
3535
run: |
3636
export GPG_TTY=$(tty)
3737
mvn clean deploy -DskipTests=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}
38+
env:
39+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
40+
MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }}
3841
working-directory: Xero-Java

0 commit comments

Comments
 (0)