-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 811 Bytes
/
pages.yml
File metadata and controls
36 lines (33 loc) · 811 Bytes
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
name: Pages
on:
push:
branches:
- master
pull_request:
types:
- opened
branches:
- master
jobs:
pages:
name: Build GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build docs
run: |
python3 -m pip install -U pip
python3 -m pip install -U setuptools wheel
python3 -m pip install .[dev]
python3 -m sphinx -W -b html docs built_html_docs/
echo ${{ github.ref }}
- name: Deploy to GitHub Pages
if: ${{ github.ref == 'refs/heads/master' }}
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: built_html_docs
jekyll: false
verbose: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}