allow to skip release to one of the stores

This commit is contained in:
Vadim 2025-01-21 12:31:34 +01:00
parent 752b231447
commit f9ceb61350

View file

@ -27,6 +27,16 @@ on:
required: true required: true
type: boolean type: boolean
default: true default: true
deploy-ios:
description: "App Store"
required: true
type: boolean
default: true
deploy-android:
description: "Google Play"
required: true
type: boolean
default: true
release-track: release-track:
description: "Release track" description: "Release track"
type: choice type: choice
@ -67,7 +77,7 @@ jobs:
build-android: build-android:
name: Build Android name: Build Android
needs: [generate-release-notes] needs: [generate-release-notes]
if: ${{ always() && !failure() && !cancelled() }} if: ${{ always() && !failure() && !cancelled() && inputs.deploy-android }}
strategy: strategy:
matrix: matrix:
binary-type: [apk, appbundle] binary-type: [apk, appbundle]
@ -82,7 +92,7 @@ jobs:
build-ios: build-ios:
name: Build iOS name: Build iOS
needs: [generate-release-notes] needs: [generate-release-notes]
if: ${{ always() && !failure() && !cancelled() }} if: ${{ always() && !failure() && !cancelled() && inputs.deploy-ios }}
uses: ./.github/workflows/build_ipa.yml uses: ./.github/workflows/build_ipa.yml
secrets: inherit secrets: inherit
with: with:
@ -92,7 +102,7 @@ jobs:
create-github-release: create-github-release:
name: Create Github release name: Create Github release
needs: [build-android, build-ios] needs: [build-android, build-ios]
if: ${{ always() && !failure() && !cancelled() }} if: ${{ always() && !cancelled() && inputs.deploy-android}}
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
@ -143,7 +153,7 @@ jobs:
create-google-play-release: create-google-play-release:
name: Create Google Play release name: Create Google Play release
needs: [build-android, build-ios] needs: [build-android, build-ios]
if: ${{ always() && !failure() && !cancelled() }} if: ${{ always() && !failure() && !cancelled() && inputs.deploy-android }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -195,7 +205,7 @@ jobs:
upload-to-app-store: upload-to-app-store:
name: Upload to App Store name: Upload to App Store
needs: [build-android, build-ios] needs: [build-android, build-ios]
if: ${{ always() && !failure() && !cancelled() }} if: ${{ always() && !failure() && !cancelled() && inputs.deploy-ios }}
runs-on: macos-13 runs-on: macos-13
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3