-
Notifications
You must be signed in to change notification settings - Fork 18
57 lines (47 loc) · 1.3 KB
/
docs.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
54
55
56
57
name: Build and deploy documentation
on:
push:
branches:
- main
pull_request:
jobs:
build-and-deploy-docs:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.repository_owner == 'cesium-ml'
steps:
- uses: actions/cache@v2
with:
path: |
~/.cache/pip
~/.cache/sphinx
~/.ccache
~/.local
~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- uses: actions/setup-python@v1
with:
python-version: "3.8"
- uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.docs.txt
- name: Build docs
run: |
cd doc
make html
touch _build/html/.nojekyll
- name: Install SSH Client 🔑
if: github.ref == 'refs/heads/main'
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.CI_DEPLOY_KEY }}
- name: Deploy docs
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
FOLDER: doc/_build/html
REPOSITORY_NAME: cesium-ml/baselayer
BRANCH: gh-pages
SSH: true