39 lines
859 B
YAML
39 lines
859 B
YAML
# https://github.com/actions/starter-workflows/blob/main/ci/python-publish.yml
|
|
name: Doc Build
|
|
|
|
on:
|
|
push:
|
|
branch: ['master']
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.8'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r doc/requirements.txt
|
|
|
|
- name: Build and publish
|
|
run: |
|
|
cd ./doc && make html && cd ../
|
|
|
|
- name: Deploy 🚀
|
|
uses: JamesIves/github-pages-deploy-action@4.1.1
|
|
with:
|
|
branch: doc # The branch the action should deploy to.
|
|
folder: doc/build/html # The folder the action should deploy.
|