pysolotools/.github/workflows/sphinx.yml

33 строки
784 B
YAML

name: Docs
on:
pull_request:
types:
- closed
jobs:
make-docs:
runs-on: ubuntu-latest
if: ${{ github.ref }} == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install --requirement requirements/docs.txt
pip install -r requirements.txt
shell: bash
- name: Make Documentation
working-directory: docs
run: |
make html
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: docs/build/html