Skip to content

Commit

Permalink
chore: publish releases to s3 bucket (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev authored Jun 12, 2024
1 parent 70c4fe2 commit 0bb48a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These owners will be the default owners for everything in the repo.
# Unless a later match takes precedence, global owners will be requested for review when someone opens a pull request.
* @SchweizerischeBundesbahnen/SBB-CLEW-WZU-POLARION
* @SchweizerischeBundesbahnen/SBB-CLEW-WZU-POLARION @grigoriev @yurtsevich-sbb @nirikash @jumas @pbezliapovich
10 changes: 10 additions & 0 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
]
profiles: >
[
{
"id": "s3Deploy",
"properties":
{
"altDeploymentRepository": "s3::default::s3://sbb-polarion-maven-repo/polarion.mvn"
}
},
{
"id": "githubDeploy",
"properties":
Expand All @@ -70,6 +77,9 @@ jobs:
- name: Extract artefact version
id: artefact_version
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') && github.ref == 'refs/heads/main' }}
run: mvn --batch-mode deploy -Ps3Deploy
- name: Publish to GitHub Packages
if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }}
run: mvn --batch-mode deploy -PgithubDeploy
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/webapp/interceptor-admin/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ function getItemTypeName(itemType) {

function getInterceptorTypeName(hookType) {
switch (hookType) {
case 'SAVE': return 'pre-save';
case 'DELETE': return 'pre-delete';
case 'SAVE': return 'save';
case 'DELETE': return 'delete';
}
return hookType;
}
Expand Down

0 comments on commit 0bb48a3

Please sign in to comment.