Skip to content

build(deps): bump actions/download-artifact in /.github/workflows #44

build(deps): bump actions/download-artifact in /.github/workflows

build(deps): bump actions/download-artifact in /.github/workflows #44

Workflow file for this run

name: Docs
on: [push, pull_request]
jobs:
build-docs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
architecture: x64
- run: pip install -e ".[docs]"
- run: sphinx-build -a docs/ docs/_build/html
- run: touch docs/_build/html/.nojekyll
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: htmldocs
path: docs/_build/html
deploy-docs:
name: Deploy
needs: build-docs
if: "github.event_name == 'push' && github.ref == 'refs/heads/master'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download Artifacts
uses: actions/[email protected]
with:
name: htmldocs
path: html
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: html
clean: true
force: true