Skip to content

Commit

Permalink
Split Release Workflow (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Oct 2, 2024
1 parent 9aff0b4 commit fe3b0cc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-perform.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SmallRye Release
name: SmallRye Prepare Release

on:
pull_request:
Expand All @@ -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 }}

0 comments on commit fe3b0cc

Please sign in to comment.