-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 1002 Bytes
/
documentation.yaml
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
---
name: Publish Sphinx doc to gh-pages
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
sphinx_doc:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/publish-sphinx-tmp' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Install dependencies
run: |
export BME_PROJECT_DIR="${GITHUB_WORKSPACE}"
echo "Python version: "`python --version`
echo "pip version: "`pip --version`
pip install --user --requirement "${GITHUB_WORKSPACE}/python-virtualenvs/multigit-development.requirements"
- name: Sphinx build
run: |
cd "${GITHUB_WORKSPACE}/src" && make doc
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: src/build/html/
force_orphan: true