From 204ea6fe54e2f5bba3723cd01be6dc43d7e336a4 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Mon, 27 May 2024 15:48:35 +0200 Subject: [PATCH] chore: settings.xml updated with repos --- .github/workflows/maven-release.yml | 48 ++++++++--------------------- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 116456b..20f6f27 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -62,46 +62,23 @@ jobs: [ { "id": "s3Deploy", - "distributionManagement": - { - "repository": - { - "id": "s3", - "url" "s3://sbb-polarion-maven-repo/polarion.mvn" - } - } + "properties": + { + "altReleaseDeploymentRepository": "s3::default::s3://sbb-polarion-maven-repo/polarion.mvn" + } }, { "id": "githubDeploy", - "distributionManagement": - { - "repository": - { - "id": "github", - "url" "https://maven.pkg.github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.generic" - }, - "snapshotRepository": - { - "id": "github", - "url" "https://maven.pkg.github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.generic" - } - } + "properties": + { + "altReleaseDeploymentRepository": "github::default::https://maven.pkg.github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.generic" + } }, { "id": "repsyDeploy", - "distributionManagement": - { - "repository": - { - "id": "repsy", - "url" "https://repo.repsy.io/mvn/sbb/polarion" - }, - "snapshotRepository": - { - "id": "repsy", - "url" "https://repo.repsy.io/mvn/sbb/polarion" - } - } + { + "altReleaseDeploymentRepository": "repsy::default::https://repo.repsy.io/mvn/sbb/polarion" + } } ] active_profiles: > @@ -114,7 +91,8 @@ jobs: run: mvn --batch-mode clean package - name: Extract artefact version id: artefact_version - run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) + run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version + -q -DforceStdout) - name: Publish to S3 bucket if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') }} run: mvn --batch-mode deploy -Ps3Deploy