Merge pull request #28 from d3i-infra/instagram-standard-script #20
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: Build Documentation and Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
- sphinx-docs-workflow | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
docs-build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install dependencies | |
run: | | |
pip install sphinx sphinx_rtd_theme myst_parser piccolo_theme | |
- name: Sphinx build | |
run: | | |
sphinx-build doc/source _build | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_branch: gh-pages-docs | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _build/ | |
force_orphan: true |