-
Notifications
You must be signed in to change notification settings - Fork 101
63 lines (54 loc) · 1.45 KB
/
docs_build.yml
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
name: Build docs
on:
push:
branches:
- main
pull_request:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
docs:
name: Build docs
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/setup-python@v1
with:
python-version: "3.10"
- uses: actions/cache@v2
with:
path: |
~/.cache
key: ${{ runner.os }}-${{ hashFiles('requirements*') }}
- name: Checkout branch being tested
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
clean: false
- name: Install dependencies & configure cesium
run: |
pip install --upgrade pip
pip install .
- name: Build docs
run: |
if [[ $SKIP_DOCS != 1 ]]; then
make doc_reqs
make html
fi
- 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.event_name == 'push' && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
FOLDER: doc/_build/html
REPOSITORY_NAME: cesium-ml/docs
BRANCH: gh-pages
SSH: true