36 lines
736 B
YAML
36 lines
736 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- latest
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.8'
|
|
|
|
- name: Upgrade pip
|
|
run: |
|
|
# install pip=>20.1 to use "pip cache dir"
|
|
python3 -m pip install --upgrade pip
|
|
|
|
- name: Install dependencies
|
|
run: python3 -m pip install -r ./requirements.txt
|
|
|
|
- name: Build docs
|
|
run: (cd doc_src && make html)
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./doc_src/_build/html
|
|
|