Skip to content

Commit 9a251d7

Browse files
committed
chore: update gh action for new Maven Central deployment
1 parent 2914b9b commit 9a251d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/maven-ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: mvn --batch-mode verify
3333

3434
maven-deploy:
35-
name: "Deploy snapshot to Sonatype OSSRH"
35+
name: "Deploy snapshot to Maven Central"
3636
needs: maven-verify
3737
if: ${{ github.ref == 'refs/heads/main' }}
3838
runs-on: ubuntu-latest
@@ -44,9 +44,9 @@ jobs:
4444
with:
4545
java-version: 21
4646
distribution: "temurin"
47-
server-id: ossrh
48-
server-username: OSSRH_USERNAME
49-
server-password: OSSRH_PASSWORD
47+
server-id: central
48+
server-username: MAVEN_USERNAME
49+
server-password: MAVEN_PASSWORD
5050
- name: "Get Maven dependencies from cache"
5151
uses: actions/cache@v4
5252
with:
@@ -56,5 +56,5 @@ jobs:
5656
- name: "Build and deploy to the Maven Central Repository"
5757
run: mvn --batch-mode -DskipTests deploy
5858
env:
59-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
60-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
59+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
60+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

0 commit comments

Comments
 (0)