File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 28
28
distribution : ' temurin'
29
29
java-version : ${{ matrix.java_version }}
30
30
cache : ' maven'
31
- server-id : sonatype-nexus -snapshots
31
+ server-id : central -snapshots
32
32
server-username : CI_DEPLOY_USERNAME
33
33
server-password : CI_DEPLOY_PASSWORD
34
34
# See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
@@ -38,11 +38,11 @@ jobs:
38
38
run : ./mvnw -B -q -ff -ntp verify
39
39
- name : Extract project Maven version
40
40
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
42
42
- 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') }}
44
44
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 }}
47
47
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
48
48
run : ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
You can’t perform that action at this time.
0 commit comments