-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 989 Bytes
/
gh-deploy.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
name: "Build and deploy Github pages"
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
persist-credentials: false
- name: "Set up Python"
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: "Install Python dependencies"
run: |
npm install -g katex
python -m pip install --upgrade pip
pip install sphinx==6.2.1 recommonmark sphinx-rtd-theme sphinx_markdown_builder ipython nbsphinx sphinxcontrib_katex pytorch_sphinx_theme
pip install .
- name: "Build Sphinx Doc"
run: |
cd docs && make clean html
- name: "Deploy Github Pages"
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html/