-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 996 Bytes
/
deploy.yml
File metadata and controls
40 lines (38 loc) · 996 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
name: Deploy to Firebase
on:
push:
branches:
- master
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
pip3 install setuptools wheel
pip3 install mkdocs mkdocs-material pygments
- name: Build
run: python3 -m mkdocs build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Website
path: site
Deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: Website
path: Website
- name: Deploy to Firebase
uses: w9jds/firebase-action@v11.22.0
with:
args: deploy --only hosting:xmux-docs
env:
PROJECT_ID: xmux-app
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}