From 1a5e180a1e7e2fa7394819738fd35f5922e2d5ec Mon Sep 17 00:00:00 2001 From: Romain Bioteau Date: Wed, 19 Jun 2024 16:46:54 +0200 Subject: [PATCH] chore(release): update workflow --- .github/workflows/createRelease.yml | 29 ----------------------------- .github/workflows/release.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 29 deletions(-) delete mode 100644 .github/workflows/createRelease.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/createRelease.yml b/.github/workflows/createRelease.yml deleted file mode 100644 index 684651d..0000000 --- a/.github/workflows/createRelease.yml +++ /dev/null @@ -1,29 +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@v4 - - - name: Release connector - uses: bonitasoft/action-release-connector@2.0.0 - id: release-connector - with: - release-version: ${{ github.event.inputs.version }} - github-token: ${{ secrets.GITHUB_TOKEN }} - 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