Skip to content

Change CardGenrationSize.thirtyFive to CardGenrationSize.thirty (… #246

Change CardGenrationSize.thirtyFive to CardGenrationSize.thirty (…

Change CardGenrationSize.thirtyFive to CardGenrationSize.thirty (… #246

Workflow file for this run

name: main
concurrency:
group: main
on:
push:
branches:
- main
paths:
- ".fvm/**"
- "lib/**"
- "assets/**"
- "fonts/**"
- "web/**"
- "pubspec.yaml"
- "pubspec.lock"
- ".github/workflows/main.yml"
- "firebase.json"
- ".firebaserc"
# Set permissions to none.
#
# Using the broad default permissions is considered a bad security practice
# and would cause alerts from our scanning tools.
permissions: {}
jobs:
build_and_deploy:
name: build-and-deploy-${{ matrix.environment.name }}
runs-on: ubuntu-22.04
permissions:
checks: write # for FirebaseExtended/action-hosting-deploy
contents: "read" # for google-github-actions/auth
id-token: "write" # for google-github-actions/auth
strategy:
matrix:
environment:
- name: prod
projectNumber: 41416187582
projectId: ankigpt-prod
flavor: prod
- name: dev
projectNumber: 531541464051
projectId: ankigpt-dev
flavor: dev
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Set Flutter version from FVM config file to environment variables
id: fvm-config-action
uses: kuhnroyal/flutter-fvm-config-action@4155f8ca4c30a4f2f50df69caa0e4259f6cd1142
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
- name: Install Firebase CLI
run: npm install -g [email protected]
- name: Build
run: |
flutter build web \
--web-renderer canvaskit \
--dart-define=RELEASE_DATE="$(date +"%B %e %Y")" \
--dart-define=FLAVOR="${{ matrix.environment.flavor }}"
- id: auth
uses: google-github-actions/auth@62cf5bd3e4211a0a0b51f2c6d6a37129d828611d
with:
workload_identity_provider: "projects/${{ matrix.environment.projectNumber }}/locations/global/workloadIdentityPools/github/providers/github-provider"
service_account: "firebase-hosting-deployer@${{ matrix.environment.projectId }}.iam.gserviceaccount.com"
- name: Deploy
run: |
firebase deploy \
-P ${{ matrix.environment.projectId }} \
-m "Deploy from ${{ github.repository }} ${{ github.sha }}"