diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 5eb9871..58d0bea 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -58,6 +58,30 @@ jobs: "password": "${{ secrets.CH_SBB_POLARION_REPSY_PASSWORD }}" } ] + profiles: > + [ + { + "id": "s3Deploy", + "properties": + { + "altReleaseDeploymentRepository": "s3::default::s3://sbb-polarion-maven-repo/polarion.mvn" + } + }, + { + "id": "githubDeploy", + "properties": + { + "altReleaseDeploymentRepository": "github::default::https://maven.pkg.github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.generic" + } + }, + { + "id": "repsyDeploy", + "properties": + { + "altReleaseDeploymentRepository": "repsy::default::https://repo.repsy.io/mvn/sbb/polarion" + } + } + ] active_profiles: > [ "github" @@ -68,7 +92,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