test maven-settings-action

This commit is contained in:
2024-08-30 12:20:43 +10:00
parent 4ceb78a4bb
commit 4af920639a

View File

@@ -26,26 +26,21 @@ jobs:
distribution: zulu distribution: zulu
java-version: 17 java-version: 17
- uses: s4u/maven-settings-action@v3.0.0 - uses: s4u/maven-settings-action@v3.0.0
env:
NEXUS_USERNAME: 'edward'
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
SNAPSHOT_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }}
RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }}
with: with:
properties: '[ properties: '[
{"altSnapshotDeploymentRepository", "nexus-snapshot::${env.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL}"}, {"altSnapshotDeploymentRepository", "nexus-snapshot::${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }}"},
{"altReleaseDeploymentRepository", "nexus-release::${env.RELEASE_DEPLOYMENT_REPOSITORY_URL}"} {"altReleaseDeploymentRepository", "nexus-release::${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }}"}
]' ]'
servers: | servers: |
[{ [{
"id": "nexus-snapshot", "id": "nexus-snapshot",
"username": "${env.NEXUS_USERNAME}" "username": 'edward'
"password": "${env.NEXUS_PASSWORD}" "password": ${{ secrets.NEXUS_PASSWORD }}
}, },
{ {
"id": "nexus-release", "id": "nexus-release",
"username": "${env.NEXUS_USERNAME}" "username": 'edward'
"password": "${env.NEXUS_PASSWORD}" "password": ${{ secrets.NEXUS_PASSWORD }}
}] }]
- name: Maven Publish - name: Maven Publish
run: | run: |