From 62cddc1f381584846295a6605c0120bbb06c75d4 Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 9 Aug 2023 17:28:10 +0200 Subject: [PATCH] Added option to create separate releases --- .github/workflows/create_release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 5f8191e..ea2e8d9 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -23,6 +23,12 @@ on: description: "Release notes" required: true type: string + github-release-release: + type: boolean + description: Create Github release + google-play-release: + type: boolean + description: Create Google Play release env: BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=240/320 -t lib/main_prod.dart @@ -30,6 +36,7 @@ env: jobs: build: name: Build .apk & .aab + if: ${{ inputs.github-release-release }} || ${{ inputs.google-play-release }} runs-on: macos-11 timeout-minutes: 30 steps: @@ -120,6 +127,7 @@ jobs: update-version-in-repo: name: Update repo version + if: ${{ inputs.github-release-release }} needs: [build] runs-on: ubuntu-latest steps: @@ -146,7 +154,7 @@ jobs: create-github-release: name: Create Github release - if: github.ref_name == 'main' + if: github.ref_name == 'main' && ${{ inputs.github-release-release }} needs: [build, generate-release-notes, update-version-in-repo] runs-on: ubuntu-latest permissions: @@ -179,7 +187,7 @@ jobs: create-google-play-release: name: Create Google Play release - if: github.ref_name == 'main' + if: github.ref_name == 'main' && ${{ inputs.google-play-release }} needs: [build, generate-release-notes] runs-on: ubuntu-latest steps: