From 733e5cd49a560b76890f9b5eafc1fcdbf9d94df0 Mon Sep 17 00:00:00 2001 From: Romain Bioteau Date: Wed, 19 Jun 2024 16:48:02 +0200 Subject: [PATCH] chore(release): update workflow --- .github/workflows/createRelease.yml | 31 ----------------------------- .github/workflows/release.yml | 18 +++++++++++++++++ 2 files changed, 18 insertions(+), 31 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 1f13796..0000000 --- a/.github/workflows/createRelease.yml +++ /dev/null @@ -1,31 +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 - with: - fetch-depth: 0 - - - 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