Skip to content

Update generate_firebase_files.yml #38

Update generate_firebase_files.yml

Update generate_firebase_files.yml #38

name: Deploy for Internal Test
on:
push:
branches:
- develop
- refactor/monorepo
# paths:
# - "**apps/br_ipti_tag_app**"
jobs:
generate_firebase_files:
name: Generate Firebase Files
uses: ./.github/workflows/generate_firebase_files.yml
secrets: inherit
with:
working_directory: ./apps/br_ipti_tag_app
workspace: "${{ github.workspace }}"
firebase-project: br-org-ipti-tag
################ Start Android pipeline ##################
build-android:
name: Build Android
needs: generate_firebase_files
uses: ./.github/workflows/build_android.yml
secrets: inherit
with:
environment: "production"
android-deploy:
name: Deploy Android to App Distribution
needs: build-android
uses: ./.github/workflows/deploy_on_app_distribution.yml
secrets: inherit
################ End Android pipeline ##################
# ################ Start Web pipeline ##################
# build-web:
# name: Build Web
# needs: generate_firebase_files
# runs-on: ubuntu-latest
# steps:
# - name: Get project folder from artifacts
# id: project-folder
# uses: actions/download-artifact@v2
# with:
# name: project_folder
# - name: Setup Flutter
# uses: subosito/flutter-action@v2
# with:
# flutter-version: 2.10.4
# cache: true
# - name: Download pub dependencies
# working-directory: ${{ steps.project-folder.outputs.download-path }}/br_ipti_tag_app
# run: flutter pub get
# - name: Build Web App
# working-directory: ${{ steps.project-folder.outputs.download-path }}/br_ipti_tag_app
# run: flutter build web --release
# - name: Upload Web App Bundle
# uses: actions/upload-artifact@v2
# with:
# name: webbundle
# path: |
# ${{ steps.project-folder.outputs.download-path }}/br_ipti_tag_app/build/web/
# ${{ steps.project-folder.outputs.download-path }}/br_ipti_tag_app/firebase.json
# web-deploy:
# name: Deploy to Firebase Hosting
# needs: build-web
# runs-on: ubuntu-latest
# environment: development
# steps:
# - name: Get Web Bundle from artifacts
# id: webbundle
# uses: actions/download-artifact@v2
# with:
# name: webbundle
# - name: List Files Downloaded
# run: ls -R
# - name: Deploy to Firebase Hosting
# uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BR_ORG_IPTI_TAG }}'
# projectId: ${{secrets.FIREBASE_PROJECT_ID }}
# expires: 30d
# channelId: internal
# ################ End Web pipeline ##################