Restore firebase_app_id_file.json

This commit is contained in:
Vadim 2024-03-14 20:12:59 +01:00
parent 60343d3974
commit fb94f88401
4 changed files with 48 additions and 22 deletions

37
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,37 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build release
run-name: Build v${{ inputs.version }}
on:
workflow_call:
inputs:
version:
description: "Version"
required: true
type: string
binary-type:
description: "Binary type"
type: string
required: true
jobs:
build-android:
uses: ./.github/workflows/build_apk.yml
if: ${{ inputs.binary-type != 'ipa' }}
with:
binary-type: ${{ inputs.binary-type }}
flavor: prod
stage-backend: false
version: ${{ inputs.version }}
build-ios:
uses: ./.github/workflows/build_ipa.yml
if: ${{ inputs.binary-type == 'ipa' }}
with:
stage-backend: false
version: ${{ inputs.version }}

View file

@ -5,7 +5,7 @@
name: Build Android name: Build Android
run-name: Build ${{ inputs.binary-type == 'apk' && '.apk' || '.aab' }} v${{ inputs.version }} run-name: Build Android (${{ inputs.binary-type == 'apk' && '.apk' || '.aab' }}) v${{ inputs.version }}
on: on:
workflow_call: workflow_call:

View file

@ -5,7 +5,7 @@
name: Build iOS name: Build iOS
run-name: Build .ipa v${{ inputs.version }} run-name: Build iOS v${{ inputs.version }}
on: on:
workflow_call: workflow_call:
@ -87,9 +87,13 @@ jobs:
- name: Restore GoogleService-Info.plist - name: Restore GoogleService-Info.plist
run: bash .github/scripts/restore_from_base64.sh "${{ secrets.GOOGLE_SERVICES_JSON_IOS }}" "ios/Runner/GoogleService-Info.plist" run: bash .github/scripts/restore_from_base64.sh "${{ secrets.GOOGLE_SERVICES_JSON_IOS }}" "ios/Runner/GoogleService-Info.plist"
- name: Restore ios/Runner/ExportOptions.plist - name: Restore ExportOptions.plist
run: bash .github/scripts/restore_from_base64.sh "${{ secrets.APP_STORE_EXPORT_OPTIONS }}" "ios/Runner/ExportOptions.plist" run: bash .github/scripts/restore_from_base64.sh "${{ secrets.APP_STORE_EXPORT_OPTIONS }}" "ios/Runner/ExportOptions.plist"
- name: Restore firebase_app_id_file.json
run: bash .github/scripts/restore_from_base64.sh "${{ secrets.FIREBASE_APP_ID_FILE }}" "ios/firebase_app_id_file.json"
- name: Restore firebase_options.dart - name: Restore firebase_options.dart
run: bash .github/scripts/restore_from_base64.sh "${{ secrets.FIREBASE_OPTIONS }}" "lib/firebase_options.dart" run: bash .github/scripts/restore_from_base64.sh "${{ secrets.FIREBASE_OPTIONS }}" "lib/firebase_options.dart"

View file

@ -33,27 +33,12 @@ jobs:
build: build:
name: Build ${{ matrix.binary-type != 'ipa' && 'Android' || 'iOS' }} (.${{ matrix.binary-type }}) name: Build ${{ matrix.binary-type != 'ipa' && 'Android' || 'iOS' }} (.${{ matrix.binary-type }})
#needs: [run-integration-tests] #needs: [run-integration-tests]
runs-on: macos-11
strategy: strategy:
matrix: matrix:
binary-type: [apk, appbundle, ipa] binary-type: [apk, appbundle, ipa]
steps: uses: ./.github/workflows/build.yml
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/workflows/build_apk.yml
if: ${{ matrix.binary-type != 'ipa' }}
with: with:
binary-type: ${{ matrix.binary-type }} binary-type: ${{ matrix.binary-type }}
flavor: prod
stage-backend: false
version: ${{ inputs.version }}
- uses: ./.github/workflows/build_ipa.yml
if: false
with:
stage-backend: false
version: ${{ inputs.version }} version: ${{ inputs.version }}
generate-release-notes: generate-release-notes: