From fe3b0cc3d9ced930ed0e843b4fbcf63b536ed708 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 2 Oct 2024 06:39:58 -0300 Subject: [PATCH] Split Release Workflow (#350) --- .github/workflows/release-perform.yml | 29 +++++++++++++++++++ .../{release.yml => release-prepare.yml} | 11 +------ 2 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/release-perform.yml rename .github/workflows/{release.yml => release-prepare.yml} (54%) diff --git a/.github/workflows/release-perform.yml b/.github/workflows/release-perform.yml new file mode 100644 index 0000000..56cd0a3 --- /dev/null +++ b/.github/workflows/release-perform.yml @@ -0,0 +1,29 @@ +name: SmallRye Perform Release +run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release +on: + push: + tags: + - '*' + workflow_dispatch: + inputs: + tag: + description: 'Tag to release' + required: true + +permissions: + attestations: write + id-token: write + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + perform-release: + name: Perform Release + uses: smallrye/.github/.github/workflows/perform-release.yml@main + secrets: inherit + with: + version: ${{github.event.inputs.tag || github.ref_name}} + dry_run: ${{ vars.CI_DRY_RUN_RELEASE }} diff --git a/.github/workflows/release.yml b/.github/workflows/release-prepare.yml similarity index 54% rename from .github/workflows/release.yml rename to .github/workflows/release-prepare.yml index 9257b85..3d61f16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release-prepare.yml @@ -1,4 +1,4 @@ -name: SmallRye Release +name: SmallRye Prepare Release on: pull_request: @@ -16,12 +16,3 @@ jobs: if: ${{ github.event.pull_request.merged == true}} uses: smallrye/.github/.github/workflows/prepare-release.yml@main secrets: inherit - - perform-release: - name: Perform Release - needs: prepare-release - uses: smallrye/.github/.github/workflows/perform-release.yml@main - secrets: inherit - with: - version: ${{needs.prepare-release.outputs.release-version}} - dry_run: ${{ vars.CI_DRY_RUN_RELEASE }}