From 071a9b8b1b1c77ba74b61065136060f4ac98c87f Mon Sep 17 00:00:00 2001 From: Jagandeep Brar Date: Wed, 6 Apr 2022 22:58:17 -0400 Subject: [PATCH] chore(ci): disable Firebase activation on unsupported platforms --- .github/actions/prepare_for_build/action.yml | 10 +++++++--- .github/workflows/build_linux.yml | 9 --------- .github/workflows/build_windows.yml | 9 --------- .github/workflows/release.yml | 8 -------- 4 files changed, 7 insertions(+), 29 deletions(-) diff --git a/.github/actions/prepare_for_build/action.yml b/.github/actions/prepare_for_build/action.yml index 70e3556f..5595a94f 100644 --- a/.github/actions/prepare_for_build/action.yml +++ b/.github/actions/prepare_for_build/action.yml @@ -2,12 +2,15 @@ name: 'Prepare for Build' description: 'Setup all required dependencies and secrets for building the given platform' inputs: - firebase-token: - description: 'Firebase Token' - required: true platform: description: 'Platform to be Built' required: true + + # Config + firebase-token: + description: 'Firebase Token' + required: false + default: '' skip-core: description: 'Skip Installing Core Files' required: false @@ -100,6 +103,7 @@ runs: echo ${{ inputs.android-key-properties }} | base64 --decode > android/key.properties - name: Setup Firebase Configuration + if: ${{ inputs.firebase-token != '' }} shell: bash env: FIREBASE_TOKEN: ${{ inputs.firebase-token }} diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index 76c443bd..d95f59b2 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -2,14 +2,6 @@ name: 'Build Linux' on: workflow_call: - inputs: - build-number: - required: true - type: string - - secrets: - FIREBASE_TOKEN: - required: true jobs: build-snapcraft: @@ -19,7 +11,6 @@ jobs: - name: Setup Environment uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master with: - firebase-token: ${{ secrets.FIREBASE_TOKEN }} platform: linux - name: Build LunaSea diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index bd9dde80..75835cdf 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -2,14 +2,6 @@ name: 'Build Windows' on: workflow_call: - inputs: - build-number: - required: true - type: string - - secrets: - FIREBASE_TOKEN: - required: true jobs: build-app-package: @@ -19,7 +11,6 @@ jobs: - name: Setup Environment uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master with: - firebase-token: ${{ secrets.FIREBASE_TOKEN }} platform: windows - name: Build LunaSea diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 96e38880..16ffee88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,10 +75,6 @@ jobs: name: Build Linux needs: [ prepare, validate ] uses: JagandeepBrar/LunaSea/.github/workflows/build_linux.yml@master - with: - build-number: ${{ needs.prepare.outputs.build-number }} - secrets: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} build-macos: name: Build macOS @@ -106,10 +102,6 @@ jobs: name: Build Windows needs: [ prepare, validate ] uses: JagandeepBrar/LunaSea/.github/workflows/build_windows.yml@master - with: - build-number: ${{ needs.prepare.outputs.build-number }} - secrets: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} build-web: name: Build Web