Skip to content

Commit 9572a5f

Browse files
committed
Reverse to using environment variables again
1 parent afa4dda commit 9572a5f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ jobs:
2222
distribution: 'temurin'
2323
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2424
server-id: central
25-
server-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
26-
server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
25+
server-username: MAVEN_USERNAME
26+
server-password: MAVEN_PASSWORD
2727
- name: Publish to the Maven Central Repository
2828
run: mvn -P central --batch-mode deploy
29+
env:
30+
MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
31+
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
2932
- name: Set up Java for publishing to GitHub Packages
3033
uses: actions/setup-java@v4
3134
with:

0 commit comments

Comments
 (0)