-
Notifications
You must be signed in to change notification settings - Fork 115
41 lines (38 loc) · 1.24 KB
/
build_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
name: Build documentation
# Run workflow on pushes to matching branches
on:
push:
branches: [jupyter-book]
# checkout needs 'contents:read'
# deploy needs 'contents:write'
permissions:
contents: write
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install required packages
run: |
sudo apt-get -y install ffmpeg
pip install -r requirements.txt
- name: Build latest documentation
shell: bash
run: |
make clean
make
cp docs/index.html _build
- name: Deploy documentation to GitHub Pages
uses: JamesIves/github-pages-deploy-action@5dc1d5a192aeb5ab5b7d5a77b7d36aea4a7f5c92 # This is version 4.1.4
with:
branch: testdocs # The branch the action should deploy to.
folder: _build # The folder the action should deploy.
git-config-name: Deployment Bot # Name of the committer
git-config-email: [email protected] # Email of the committer