From 5a7f1c238928f8917c8e060a4aa2980757501192 Mon Sep 17 00:00:00 2001 From: Jagandeep Brar Date: Mon, 17 Jan 2022 12:23:44 -0500 Subject: [PATCH] [skip ci] new(ci): Trigger internal build deployment on push to master --- .github/workflows/build_all_platforms.yml | 23 ++++++++++++++--------- .github/workflows/build_android.yml | 11 ----------- .github/workflows/build_ios.yml | 11 ----------- .github/workflows/build_macos.yml | 11 ----------- 4 files changed, 14 insertions(+), 42 deletions(-) diff --git a/.github/workflows/build_all_platforms.yml b/.github/workflows/build_all_platforms.yml index d56cdcab..db6c8ae0 100644 --- a/.github/workflows/build_all_platforms.yml +++ b/.github/workflows/build_all_platforms.yml @@ -1,12 +1,17 @@ name: 'Build & Deploy All Platforms' on: + push: + branches: + - 'master' + workflow_dispatch: inputs: flavor: type: choice required: true description: 'Build Flavor' + default: 'internal' options: - 'internal' - 'alpha' @@ -32,20 +37,20 @@ on: jobs: build_android: - if: ${{ github.event.inputs.android == 'true' }} + if: ${{ (github.event.inputs.android || 'true') == 'true' }} uses: CometTools/LunaSea/.github/workflows/build_android.yml@master with: - flavor: ${{ github.event.inputs.flavor }} + flavor: ${{ github.event.inputs.flavor || 'internal' }} secrets: GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} KEY_JKS: ${{ secrets.KEY_JKS }} KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }} build_ios: - if: ${{ github.event.inputs.ios == 'true' }} + if: ${{ (github.event.inputs.ios || 'true') == 'true' }} uses: CometTools/LunaSea/.github/workflows/build_ios.yml@master with: - flavor: ${{ github.event.inputs.flavor }} + flavor: ${{ github.event.inputs.flavor || 'internal' }} secrets: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }} @@ -57,10 +62,10 @@ jobs: MATCH_SSH_PRIVATE_KEY: ${{ secrets.MATCH_SSH_PRIVATE_KEY }} build_macos: - if: ${{ github.event.inputs.macos == 'true' }} + if: ${{ (github.event.inputs.macos || 'true') == 'true' }} uses: CometTools/LunaSea/.github/workflows/build_macos.yml@master with: - flavor: ${{ github.event.inputs.flavor }} + flavor: ${{ github.event.inputs.flavor || 'internal' }} secrets: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }} @@ -75,7 +80,7 @@ jobs: needs: build_android uses: CometTools/LunaSea/.github/workflows/deploy_android.yml@master with: - flavor: ${{ github.event.inputs.flavor }} + flavor: ${{ github.event.inputs.flavor || 'internal' }} secrets: GOOGLE_PLAY_API: ${{ secrets.GOOGLE_PLAY_API }} @@ -83,7 +88,7 @@ jobs: needs: build_ios uses: CometTools/LunaSea/.github/workflows/deploy_ios.yml@master with: - flavor: ${{ github.event.inputs.flavor }} + flavor: ${{ github.event.inputs.flavor || 'internal' }} secrets: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }} @@ -97,7 +102,7 @@ jobs: needs: build_macos uses: CometTools/LunaSea/.github/workflows/deploy_macos.yml@master with: - flavor: ${{ github.event.inputs.flavor }} + flavor: ${{ github.event.inputs.flavor || 'internal' }} secrets: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_ITC_TEAM_ID: ${{ secrets.APPLE_ITC_TEAM_ID }} diff --git a/.github/workflows/build_android.yml b/.github/workflows/build_android.yml index 61e8c169..f0375ce5 100644 --- a/.github/workflows/build_android.yml +++ b/.github/workflows/build_android.yml @@ -1,17 +1,6 @@ name: '[Android] Build' on: - workflow_dispatch: - inputs: - flavor: - type: choice - required: true - description: 'Build Flavor' - options: - - 'internal' - - 'alpha' - - 'beta' - workflow_call: inputs: flavor: diff --git a/.github/workflows/build_ios.yml b/.github/workflows/build_ios.yml index 7e7bb364..9096b72b 100644 --- a/.github/workflows/build_ios.yml +++ b/.github/workflows/build_ios.yml @@ -1,17 +1,6 @@ name: '[iOS] Build' on: - workflow_dispatch: - inputs: - flavor: - type: choice - required: true - description: 'Build Flavor' - options: - - 'internal' - - 'alpha' - - 'beta' - workflow_call: inputs: flavor: diff --git a/.github/workflows/build_macos.yml b/.github/workflows/build_macos.yml index 46469dbd..b2f28ad5 100644 --- a/.github/workflows/build_macos.yml +++ b/.github/workflows/build_macos.yml @@ -1,17 +1,6 @@ name: '[macOS] Build' on: - workflow_dispatch: - inputs: - flavor: - type: choice - required: true - description: 'Build Flavor' - options: - - 'internal' - - 'alpha' - - 'beta' - workflow_call: inputs: flavor: