-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (39 loc) · 1.28 KB
/
firebase-hosting-pull-request.yml
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
47
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy web preview
on: pull_request
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == 'Ramaz-Upper-School/RamLife' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./repo
steps:
- name: Get Flutter from the cache
id: cache-flutter
uses: actions/cache@v2
with:
path: flutter/
key: ${{ runner.os }}-flutter
- name: Install Flutter
if: steps.cache-flutter.outputs.cache-hit != 'true'
uses: britannio/[email protected]
- uses: actions/checkout@v2
with:
path: repo
- name: Add Flutter to path
run: echo "../flutter/bin" >> $GITHUB_PATH
- name: Build web app
run: flutter build web
- name: Deploy to preview channel
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RAMAZ_GO }}'
projectId: ramaz-go
entryPoint: ./repo
channelId: live
target: test
env:
FIREBASE_CLI_PREVIEWS: hostingchannels