From c02cacb507a9781c5994a8235ab389a8b2bfc03b Mon Sep 17 00:00:00 2001 From: Adrien Kantcheff <5028967+akantcheff@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:48:05 +0100 Subject: [PATCH] ci(build): add release input (#85) --- .github/workflows/_reusable_build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/_reusable_build.yml b/.github/workflows/_reusable_build.yml index 242f679..ac2f5ce 100644 --- a/.github/workflows/_reusable_build.yml +++ b/.github/workflows/_reusable_build.yml @@ -15,10 +15,10 @@ on: type: string default: snapshots::${{ vars.SNAPSHOTS_REPOSITORY_URL }} description: Maven alternative repository to which the project artifacts should be deployed. - upload-release-asset: + release: type: boolean default: false - description: Set to `true` to upload assets to the GitHub Release. + description: To indicate that the current build is for a release. secrets: BONITA_CI_PAT: @@ -57,6 +57,8 @@ jobs: timeout-minutes: 60 run: ./mvnw -ntp deploy -DaltDeploymentRepository=${{ inputs.alt-deployment-repository }} - - name: Upload Github release asset - if: ${{ inputs.upload-release-asset }} + - name: Upload BOS to the Github release + if: ${{ inputs.release }} + env: + GH_TOKEN: ${{ secrets.BONITA_CI_PAT }} run: gh release upload ${{ inputs.ref }} ./target/bonita-application-directory-${{ inputs.ref }}.bos