Skip to content

Commit de7155b

Browse files
committed
Fix CI snapshot publishing
1 parent 46f0168 commit de7155b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
distribution: 'temurin'
3838
java-version: ${{ matrix.java_version }}
3939
cache: 'maven'
40-
server-id: sonatype-nexus-snapshots
40+
server-id: central-snapshots
4141
server-username: CI_DEPLOY_USERNAME
4242
server-password: CI_DEPLOY_PASSWORD
4343
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -55,8 +55,8 @@ jobs:
5555
- name: Deploy snapshot
5656
if: ${{ github.event_name != 'pull_request' && matrix.release_build && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5757
env:
58-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
59-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
58+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
59+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
6060
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6161
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
6262
- name: Generate code coverage

0 commit comments

Comments
 (0)