Skip to content

Commit

Permalink
fix: add missing profiles in settings.xml (#8)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Sergey Grigoriev <sergey.grigoriev@sbb.ch>
  • Loading branch information
ariwk and grigoriev authored May 28, 2024
1 parent 25ca190 commit 295e052
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 295e052

Please sign in to comment.