-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 856 Bytes
/
main.yml
File metadata and controls
41 lines (38 loc) · 856 Bytes
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
cd hosting
npm ci
npm run build
- uses: actions/upload-artifact@v4
with:
name: hosting
path: ./hosting/build
retention-days: 1
if-no-files-found: error
deploy:
runs-on: ubuntu-latest
environment:
name: Production
url: https://crt.codesupport.dev
if: github.ref == 'refs/heads/master'
needs:
- build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
with:
name: hosting
path: ./hosting/build
- run: npx firebase-tools deploy --token "${{ secrets.FIREBASE_TOKEN }}"