-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 895 Bytes
/
deploy_doc.yml
File metadata and controls
36 lines (33 loc) · 895 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: docs
on: [push]
jobs:
deploy-ghpages:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [3.7]
fail-fast: false
steps:
- name: Checkout 🛎️
uses: actions/checkout@v1
- name: Set up python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install packages 📦
run: |
python -m pip install --upgrade pip
pip install .
pip install -r docs-requirements.txt
- name: Build 🔨
run: |
cd doc/
make html
touch build/html/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.PYCOMPRESSOR_DOC }}
BRANCH: gh-pages
FOLDER: "doc/build/html"