forked from USC-ACTLab/crazyswarm
-
Notifications
You must be signed in to change notification settings - Fork 62
41 lines (33 loc) · 931 Bytes
/
ci-docs2.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
name: Docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
# Handle dependencies here instead of conda_env.yaml
# because some packages are conda-forge only,
# which makes the env build much more slowly.
- name: Install dependencies
run: |
sudo apt update
sudo apt install texlive-latex-extra dvipng
sudo pip3 install -U setuptools
sudo pip3 install -U -r docs2/requirements.txt
- name: Build Docs
run: |
cd docs2
make html
- name: Disable github Jekyll
run: |
touch docs2/_build/html/.nojekyll
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs2/_build/html # The folder the action should deploy.