From 2bee9398653c9ff1ef935e70c66eb64ddf592ad4 Mon Sep 17 00:00:00 2001 From: Romain Bioteau Date: Wed, 19 Jun 2024 17:09:12 +0200 Subject: [PATCH] chore(release): update workflow --- .github/workflows/create-release.yml | 49 ---------------------------- .github/workflows/release.yml | 18 ++++++++++ 2 files changed, 18 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/create-release.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml deleted file mode 100644 index feae8a2..0000000 --- a/.github/workflows/create-release.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Create release - -on: - workflow_dispatch: - inputs: - version: - description: 'The version of the release. Used as tag name.' - required: true - default: 'x.y.z' - -jobs: - build: - name: Release pipeline - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Setup Java - uses: actions/setup-java@v3 - with: - java-version: 11 - distribution: temurin - - - name: changelog - uses: scottbrenner/generate-changelog-action@master - id: Changelog - env: - REPO: ${{ github.repository }} - - - name: Create Release - id: create_release - uses: ncipollo/release-action@v1 - with: - tag: ${{ github.event.inputs.version }} - name: Release ${{ github.event.inputs.version }} - body: | - ${{ steps.Changelog.outputs.changelog }} - artifacts: target/bonita-connector-slack-${{ github.event.inputs.version }}.zip - - - name: Release connector slack - uses: samuelmeuli/action-maven-publish@v1 - with: - gpg_private_key: ${{ secrets.gpg_private_key }} - gpg_passphrase: ${{ secrets.gpg_passphrase }} - nexus_username: ${{ secrets.ossrh_username }} - nexus_password: ${{ secrets.ossrh_password }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cafc686 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,18 @@ +name: Release + +run-name: ${{ github.event.inputs.version }} Release + +on: + workflow_dispatch: + inputs: + version: + description: 'The version of the release. Used as tag name.' + required: true + default: 'x.y.z' + +jobs: + release: + uses: bonitasoft/github-workflows/.github/workflows/_reusable_release_connector.yml@main + with: + release-version: ${{ github.event.inputs.version }} + secrets: inherit \ No newline at end of file