Skip to content

Commit 4472e78

Browse files
committed
release ci: leverage maven-settings-action
1 parent fb3d52b commit 4472e78

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ jobs:
5858
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
5959

6060
- name: Initialize Maven settings
61-
run: mkdir -p ./.m2 && mv settings.xml ./.m2
61+
uses: s4u/maven-settings-action@v3.1.0
62+
with:
63+
servers: |
64+
[{
65+
"id": "central",
66+
"username": "${{ secrets.OSSRH_USERNAME }}",
67+
"password": "${{ secrets.OSSRH_TOKEN }}"
68+
}]
6269
6370
- name: Publish package
6471
run: mvn --batch-mode "-Dprod.build=true" -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} clean deploy --file pom-dist.xml

0 commit comments

Comments
 (0)