Skip to content

Bump url_launcher from 6.2.3 to 6.2.4 (#179) #186

Bump url_launcher from 6.2.3 to 6.2.4 (#179)

Bump url_launcher from 6.2.3 to 6.2.4 (#179) #186

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@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set Flutter version from FVM config file to environment variables
id: fvm-config-action
uses: kuhnroyal/flutter-fvm-config-action@6ffa30473b346f7d7c63cf9e03e6a886f940a72b
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
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@f6de81663f7788d05bd15bcce18f0e57f23f0846
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 }}"