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..ff7d9b1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +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 +