Skip to content

Commit

Permalink
chore: deployment profiles added
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed May 28, 2024
1 parent 0065485 commit 32b2bd4
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/<REPOSITORY_NAME>"
}
},
{
"id": "repsyDeploy",
"properties":
{
"altDeploymentRepository": "repsy::default::https://repo.repsy.io/mvn/sbb/polarion"
}
}
]
servers: >
[
{
Expand All @@ -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
Expand Down

0 comments on commit 32b2bd4

Please sign in to comment.