Skip to content

Build & deploy to Firebase Hosting (staging) on new release. #12

Build & deploy to Firebase Hosting (staging) on new release.

Build & deploy to Firebase Hosting (staging) on new release. #12

name: Build & deploy to Firebase Hosting (staging) on new release.
on:
release:
types: [published]
workflow_dispatch: # This line allows manual triggering of the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: stable
flutter-version: 3.7.12
- run: cd app && flutter pub get
- run: cd app && flutter build web -t lib/main_staging.dart
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_MONOPOLY_BANKING_STAGING }}"
channelId: live
projectId: monopoly-banking-staging
target: monopoly-banking-app-staging # The site where the flutter app is deployed
entryPoint: "app" # Added because firebase.json is in the app directory
env:
FIREBASE_CLI_PREVIEWS: hostingchannels