Skip to content

Commit

Permalink
chore(merge): master into release-10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bonita-ci committed Mar 15, 2024
2 parents e8e7bfe + 150e3e9 commit a52e550
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/_reusable_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ on:
publish:
type: boolean
default: false
description: To publish the project artifacts to the Maven alternative repository.
alt-deployment-repository:
type: string
default: snapshots::${{ vars.SNAPSHOTS_REPOSITORY_URL }}
description: Maven alternative repository to which the project artifacts should be deployed.
description: To publish the project artifacts on Bonita Artifact Repository.
release:
type: boolean
default: false
description: To indicate that the current build is for a release.
description: To indicate that the current build is for a release (it will publish artifacts as well).

secrets:
BONITA_CI_PAT:
Expand Down Expand Up @@ -52,10 +48,15 @@ jobs:
timeout-minutes: 60
run: ./mvnw -ntp verify

- name: Maven Build & Deploy
if: ${{ inputs.publish }}
- name: Maven Build & Deploy snapshot
if: ${{ inputs.publish && !inputs.release }}
timeout-minutes: 60
run: ./mvnw -ntp deploy -DaltDeploymentRepository=snapshots::${{ vars.SNAPSHOTS_REPOSITORY_URL }}

- name: Maven Build & Deploy release
if: ${{ inputs.release }}
timeout-minutes: 60
run: ./mvnw -ntp deploy -DaltDeploymentRepository=${{ inputs.alt-deployment-repository }}
run: ./mvnw -ntp deploy -DaltDeploymentRepository=staging::${{ vars.STAGING_REPOSITORY_URL }}

- name: Upload BOS to the Github release
if: ${{ inputs.release }}
Expand Down

0 comments on commit a52e550

Please sign in to comment.