-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (64 loc) · 1.67 KB
/
Copy pathdeploy-dev.yml
File metadata and controls
68 lines (64 loc) · 1.67 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Deploy to Development Environment
# /client app - deploy to Firebase Hosting
on:
push:
branches:
- dev
jobs:
lint-client:
name: Lint and Export client
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_BASE_PATH: ""
RELEASE_VERSION: ${{ secrets.RELEASE_VERSION }}
RELEASE_PAGE: ${{ secrets.RELEASE_PAGE }}
COMMIT_ID: ${{ secrets.COMMIT_ID }}
OPENGRAPH_IMAGE_URL: ${{ secrets.OPENGRAPH_IMAGE_URL }}
steps:
- name: Checkout the repository
uses: actions/checkout@v5
with:
ref: 'dev'
fetch-depth: 0
- name: Use NodeJS v20.15.0
uses: actions/setup-node@v3
with:
node-version: 20.15.0
- name: Install Dependencies
run: |
cd docs
npm install
- name: Lint
run: |
cd docs
npm run lint
- name: Export static files
run: |
cd docs
npm run export
touch out/.nojekyll
- name: Archive Development Artifact
uses: actions/upload-artifact@v4
with:
name: dev-out
include-hidden-files: true
path: |
docs/out
docs/.firebaserc
docs/firebase.json
retention-days: 3
deploy-client:
name: Deploy Client to Firebase Hosting
needs: lint-client
runs-on: ubuntu-latest
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: dev-out
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:dev
env:
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}