53 lines (48 loc) · 1.25 KB
/
build_deploy_website.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
47
48
49
50
51
52
53
name: Build and deploy website
concurrency:
group: build_website_${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- main
paths-ignore:
- "packages/**"
defaults:
run:
working-directory: website
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Build website
run: npm run build
- name: Archive Production Artifact
uses: actions/upload-artifact@v4
with:
name: build
path: website/build
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: build
path: website/build
- name: Deploy website to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLUTTER_COMMUNITY_DASHBOARD }}"
channelId: live
entryPoint: ./website