-
-
Notifications
You must be signed in to change notification settings - Fork 172
36 lines (32 loc) · 870 Bytes
/
publish-docs.yml
File metadata and controls
36 lines (32 loc) · 870 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: Publish Docs
on:
push:
branches: [ master ]
paths:
- "docs/**"
- ".github/workflows/publish-docs.yml"
- "Makefile"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
make st2
sudo apt-get update
# python3-dev is already available
# sudo apt install python3-dev
sudo apt install libldap2-dev
sudo apt install libsasl2-dev
sudo pip3 install virtualenv
make docs
# turn off jekyll so that url routing works properly with underscores
touch docs/build/html/.nojekyll
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: docs/build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}