From 32b2bd4c3b6c139d9522e52058e95d77b6bff37c Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Tue, 28 May 2024 14:56:49 +0200 Subject: [PATCH 1/5] chore: deployment profiles added --- .github/workflows/maven-release.yml | 31 ++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 5eb9871..5f2aa00 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -40,6 +40,30 @@ jobs: } } ] + profiles: > + [ + { + "id": "s3Deploy", + "properties": + { + "altDeploymentRepository": "s3::default::s3://sbb-polarion-maven-repo/polarion.mvn" + } + }, + { + "id": "githubDeploy", + "properties": + { + "altDeploymentRepository": "github::default::https://maven.pkg.github.com/SchweizerischeBundesbahnen/" + } + }, + { + "id": "repsyDeploy", + "properties": + { + "altDeploymentRepository": "repsy::default::https://repo.repsy.io/mvn/sbb/polarion" + } + } + ] servers: > [ { @@ -58,17 +82,14 @@ jobs: "password": "${{ secrets.CH_SBB_POLARION_REPSY_PASSWORD }}" } ] - active_profiles: > - [ - "github" - ] - name: Print settings.xml run: cat /home/runner/.m2/settings.xml - name: Build with Maven 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 From d1472e961a65701540bf598f730a8338f2fc97a4 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Tue, 28 May 2024 15:47:35 +0200 Subject: [PATCH 2/5] chore: deprecated ::set-output removed --- .github/workflows/maven-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 5f2aa00..4bb14a5 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -11,7 +11,7 @@ jobs: packages: write steps: - uses: actions/checkout@v4 - - name: Set up JDK 17 for deploy to S3 bucket + - name: Set up JDK and Maven uses: actions/setup-java@v4 with: distribution: adopt @@ -88,8 +88,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 "name=version::$(mvn help:evaluate -Dexpression=project.version + -q -DforceStdout)" >> $GITHUB_OUTPUT - name: Publish to S3 bucket if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') }} run: mvn --batch-mode deploy -Ps3Deploy From d9b9e3c59390068419ca79478afd64bb3aaf4e9a Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Tue, 28 May 2024 15:51:13 +0200 Subject: [PATCH 3/5] chore: deployment profiles added --- .github/workflows/maven-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 4bb14a5..362d947 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -53,7 +53,7 @@ jobs: "id": "githubDeploy", "properties": { - "altDeploymentRepository": "github::default::https://maven.pkg.github.com/SchweizerischeBundesbahnen/" + "altDeploymentRepository": "github::default::https://maven.pkg.github.com/SchweizerischeBundesbahnen/REPOSITORY_NAME" } }, { From aee63867309a47865d8e4b09ede759b40f33d09c Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Wed, 29 May 2024 11:01:18 +0200 Subject: [PATCH 4/5] chore: deployment profiles added --- .github/workflows/maven-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 362d947..61b39b5 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -88,8 +88,8 @@ jobs: run: mvn --batch-mode clean package - name: Extract artefact version id: artefact_version - run: echo "name=version::$(mvn help:evaluate -Dexpression=project.version - -q -DforceStdout)" >> $GITHUB_OUTPUT + run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" + >> $GITHUB_OUTPUT - name: Publish to S3 bucket if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') }} run: mvn --batch-mode deploy -Ps3Deploy From 10d4740068b8fe713d016ffb1277eaed4393fb92 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Wed, 29 May 2024 11:35:05 +0200 Subject: [PATCH 5/5] chore: deployment profiles added --- .github/workflows/maven-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 61b39b5..7ce00a1 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -53,7 +53,7 @@ jobs: "id": "githubDeploy", "properties": { - "altDeploymentRepository": "github::default::https://maven.pkg.github.com/SchweizerischeBundesbahnen/REPOSITORY_NAME" + "altDeploymentRepository": "github::default::https://maven.pkg.github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.extension-name" } }, {