From 497695e73ddb6536c9d1859a10c1ae10f0e47304 Mon Sep 17 00:00:00 2001 From: "Florine W. Dekker" Date: Mon, 26 Feb 2024 17:41:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A9=20mommy=20allows=20partial=20relea?= =?UTF-8?q?ses~?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index dddb802..f940487 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -4,7 +4,23 @@ on: workflow_dispatch: inputs: dry_run: - description: 'Dry run' + description: 'dry run' + type: boolean + default: true + release_mommy: + description: 'create mommy release' + type: boolean + default: true + release_apt: + description: 'create apt-mommy release' + type: boolean + default: true + release_aur: + description: 'create aur-mommy release' + type: boolean + default: true + release_homebrew: + description: 'create homebrew-mommy release' type: boolean default: true @@ -188,8 +204,19 @@ jobs: path: dist/mommy* + release-gate: + needs: [ build-linux, build-macos, build-freebsd, build-netbsd, build-openbsd ] + runs-on: ubuntu-latest + + steps: + - name: Gate opened! + run: | + echo "The gates have opened!" + + release-mommy: - needs: [ pre-flight-checks, build-linux, build-macos, build-freebsd, build-netbsd, build-openbsd ] + if: ${{ github.event.inputs.release_mommy == 'true' }} + needs: [ release-gate ] runs-on: ubuntu-latest env: @@ -225,7 +252,8 @@ jobs: discussion_category_name: announcements release-apt: - needs: [ pre-flight-checks, release-mommy ] + if: ${{ github.event.inputs.release_apt == 'true' }} + needs: [ release-gate ] runs-on: ubuntu-latest env: @@ -282,7 +310,8 @@ jobs: fi; release-aur: - needs: [ pre-flight-checks, release-mommy ] + if: ${{ github.event.inputs.release_aur == 'true' }} + needs: [ release-gate ] runs-on: ubuntu-latest container: archlinux:latest @@ -362,7 +391,8 @@ jobs: fi; release-homebrew: - needs: [ pre-flight-checks, release-mommy ] + if: ${{ github.event.inputs.release_homebrew == 'true' }} + needs: [ release-gate ] runs-on: ubuntu-latest env: