forked from firebase/flutterfire
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (46 loc) · 1.04 KB
/
Copy pathdocs.yaml
File metadata and controls
49 lines (46 loc) · 1.04 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
name: publish_docs
on:
push:
branches:
- master
paths:
- "docs/**"
- "website/**"
workflow_dispatch:
jobs:
build_docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Run Build
working-directory: ./website
run: |
yarn
yarn run build
- uses: actions/upload-artifact@v2
with:
name: docs-release-build
path: website/build
deploy_docs:
name: Deploy Docs
runs-on: ubuntu-latest
needs: build_docs
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- uses: actions/download-artifact@v2
with:
name: docs-release-build
path: website/build
- run: |
cd website
npm install -g firebase-tools
firebase deploy --only hosting \
--project flutter-firebase-docs \
--token ${{ secrets.FIREBASE_DOCS_TOKEN }}