Add Sphinx/RTD documentation structure #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
- name: Enter pyqt-apps Folder | |
run: cd pyqt-apps | |
- name: Install siriushla | |
run: pip install . | |
- name: Go to Docs Folder | |
run: cd docs | |
- name: Install dependencies | |
run: pip install -r doc_requirements.txt | |
- name: Go to Source Folder | |
run: cd source | |
- name: Build HTML | |
run: sphinx-build -b html . ../../../_build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: documentation | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _build/ | |
force_orphan: true |