-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.32 KB
/
cd.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: CD
"on":
push:
branches:
- main
jobs:
deploy-website:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Installing Dependencies
working-directory: ./website
run: yarn install
- name: Build
working-directory: ./website
run: yarn build
- name: Install Firebase Tools
working-directory: ./website
run: npm install -g firebase-tools
- name: Deploying to Firebase
working-directory: ./website
run: firebase deploy --token "${{ secrets.FIREBASE_SECRET }}"
deploy-api:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Installing Dependencies
working-directory: ./api/functions
run: yarn install
- name: Install Firebase Tools
run: npm install -g firebase-tools
- name: Deploying to Firebase
working-directory: ./api/functions
run: firebase deploy --token "${{ secrets.FIREBASE_SECRET }}"
test-data:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Installing Dependencies
working-directory: ./tests
run: yarn install
- name: Test
working-directory: ./tests
run: yarn test