-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.26 KB
/
deploy-preview.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
name: Deploy to Preview Channel
on:
pull_request:
jobs:
build_and_preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/iron
- name: Install dependencies
run: npm ci
- name: Quality check
run: |
npm run eslint
npm run prettier
npm test
env:
CI: true
- name: Build
run: |
npm run build
env:
CI: true
VITE_APIKEY: ${{ secrets.FIREBASE_WEB_API_KEY_DEV }}
VITE_AUTHDOMAIN: "coreofscience-dev.firebaseapp.com"
VITE_DATABASEURL: "https://coreofscience-dev.firebaseio.com"
VITE_PROJECTID: "coreofscience-dev"
VITE_STORAGEBUCKET: "coreofscience-dev.appspot.com"
VITE_MESSAGINGSENDERID: "421154467745"
VITE_APPID: "1:421154467745:web:d7dd5ed17243869ba765e0"
VITE_MEASUREMENTID: "G-N2245DYRQN"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COREOFSCIENCE_DEV }}"
expires: 30d
projectId: dev