Skip to content

Commit b1c977a

Browse files
fix: ci deploy
1 parent 960ef22 commit b1c977a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/maven-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ jobs:
1818
java-version: 23
1919
distribution: temurin
2020
server-id: central
21-
server-username: "${{ secrets.CENTRAL_TOKEN_USERNAME }}"
22-
server-password: "${{ secrets.CENTRAL_TOKEN_PASSWORD }}"
21+
server-username: MAVEN_USERNAME
22+
server-password: MAVEN_PASSWORD
2323
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
24-
gpg-passphrase: "${{ secrets.GPG_SIGNING_KEY_PASSWORD }}"
24+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2525
- name: Build with Maven
2626
run: mvn -B package --file pom.xml
2727
- name: Publish package
2828
run: mvn -P release --batch-mode deploy -DskipTests
29+
env:
30+
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
31+
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
32+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}

0 commit comments

Comments
 (0)