-
Notifications
You must be signed in to change notification settings - Fork 22
43 lines (40 loc) · 1.2 KB
/
docs.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
name: Build docs and publish to gh-pages branch and GitHub Pages
on:
push:
branches:
- development
paths-ignore:
- '.github/**'
jobs:
gh-pages:
name: Publish Github Pages
runs-on: ubuntu-latest
steps:
- name: Setup locale
run: |
sudo locale-gen en_US.UTF-8
sudo update-locale
- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y python3-appdirs python3-humanfriendly python3-humanize python3-jsonpickle python3-paramiko python3-psutil python3-watchdog
sudo apt install -y pandoc dia python3-paramiko
sudo apt install -y python3-sphinx python3-nbsphinx python3-sphinx-rtd-theme
sudo apt install -y python3-amqp
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0
- name: install Sarracenia
run: |
pip3 install .
- name: Build and Commit
uses: sphinx-notes/pages@v2
with:
documentation_path: ./docs/source
requirements_path: ./requirements-dev.txt
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages