Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧩 mommy allows partial releases~ #111

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down
Loading