test maven-settings-xml-action
This commit is contained in:
41
.github/workflows/build-and-publish-develop.yml
vendored
41
.github/workflows/build-and-publish-develop.yml
vendored
@@ -25,26 +25,45 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: zulu
|
distribution: zulu
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- uses: s4u/maven-settings-action@v3.0.0
|
- name: maven-settings-xml-action
|
||||||
|
uses: whelk-io/maven-settings-xml-action@v22
|
||||||
|
env:
|
||||||
|
NEXUS_USERNAME: 'edward'
|
||||||
|
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
|
||||||
|
MAVEN_PUBLIC_REPOSITORY_URL: ${{ secrets.MAVEN_PUBLIC_REPOSITORY_URL }}
|
||||||
|
SNAPSHOT_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }}
|
||||||
|
RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }}
|
||||||
with:
|
with:
|
||||||
properties: '[
|
profiles: >
|
||||||
{"altSnapshotDeploymentRepository", "nexus-snapshot::${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }}"},
|
[{
|
||||||
{"altReleaseDeploymentRepository", "nexus-release::${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }}"}
|
"id": "homelab",
|
||||||
]'
|
"properties": {
|
||||||
servers: |
|
"altSnapshotDeploymentRepository": "nexus-snapshot::${env.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL}",
|
||||||
|
"altReleaseDeploymentRepository": "nexus-release::${env.RELEASE_DEPLOYMENT_REPOSITORY_URL}"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
repositories: >
|
||||||
|
[{
|
||||||
|
"id": "maven-public",
|
||||||
|
"url": "${env.MAVEN_PUBLIC_REPOSITORY_URL}",
|
||||||
|
"snapshots": {
|
||||||
|
"enabled": "true"
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
servers: >
|
||||||
[{
|
[{
|
||||||
"id": "nexus-snapshot",
|
"id": "nexus-snapshot",
|
||||||
"username": "edward"
|
"username": "${env.NEXUS_USERNAME}",
|
||||||
"password": "${{ secrets.NEXUS_PASSWORD }}"
|
"password": "${env.NEXUS_PASSWORD}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "nexus-release",
|
"id": "nexus-release",
|
||||||
"username": "edward"
|
"username": "${env.NEXUS_USERNAME}",
|
||||||
"password": "${{ secrets.NEXUS_PASSWORD }}"
|
"password": "${env.NEXUS_PASSWORD}"
|
||||||
}]
|
}]
|
||||||
- name: Maven Publish
|
- name: Maven Publish
|
||||||
run: |
|
run: |
|
||||||
mvn -B deploy
|
mvn -B deploy -P homelab
|
||||||
build-docker:
|
build-docker:
|
||||||
if: false
|
if: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user