-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (41 loc) · 1.43 KB
/
firebase-hosting-pull-request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on PR
on:
workflow_dispatch:
pull_request:
paths-ignore:
- ".idea/**"
- ".vscode/**"
- "apps/app/**"
- "docs/**"
- "scripts/**"
- "tools/**"
- "mason.yaml"
- "**/docs/**"
- "**/test/**"
- "**.md"
jobs:
build-and-preview:
runs-on: ubuntu-22.04
# NOTE: See https://github.com/yumemi-inc/flutter-mobile-project-template/blob/main/docs/FIREBASE_HOSTING_PREVIEW.md
if: github.event.repository.name == 'flutter-mobile-project-template'
permissions:
checks: write
contents: read
pull-requests: write
steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Application Runtime
uses: ./.github/actions/setup-application-runtime
# https://github.com/marketplace/actions/deploy-to-firebase-hosting
- uses: FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2 # v0.7.1
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: >-
${{ secrets.FIREBASE_SERVICE_ACCOUNT_YUMEMI_FLUTTER_MOBILE_TEMPLATE }}
projectId: "yumemi-flutter-mobile-template"
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks