Skip to content

Commit 84df52f

Browse files
committed
Further fixes
1 parent f583546 commit 84df52f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
distribution: 'temurin'
2929
java-version: ${{ matrix.java_version }}
3030
cache: 'maven'
31-
server-id: sonatype-nexus-snapshots
31+
server-id: central-snapshots
3232
server-username: CI_DEPLOY_USERNAME
3333
server-password: CI_DEPLOY_PASSWORD
3434
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -38,11 +38,11 @@ jobs:
3838
run: ./mvnw -B -q -ff -ntp verify
3939
- name: Extract project Maven version
4040
id: projectVersion
41-
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
41+
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.5.1:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
4242
- name: Deploy snapshot
43-
if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
43+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4444
env:
45-
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
46-
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
45+
CI_DEPLOY_USERNAME: ${{ secrets.CENTRAL_DEPLOY_USERNAME }}
46+
CI_DEPLOY_PASSWORD: ${{ secrets.CENTRAL_DEPLOY_PASSWORD }}
4747
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4848
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy

0 commit comments

Comments
 (0)