Skip to content

Commit

Permalink
Use GitHub pages to host docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sitic committed Sep 11, 2023
1 parent 72aca8a commit ee431c0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,32 @@ jobs:
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

build_docs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: pip install .[docs]

- name: Build documentation
run: python -m sphinx -b html docs public

- uses: actions/upload-artifact@v3
with:
path: ./public


# Deploy job
deploy:
needs: build_docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit ee431c0

Please sign in to comment.