Skip to content

Commit

Permalink
ci: Automatically publish docs for new releases
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Wozniski <[email protected]>
  • Loading branch information
godlygeek committed Aug 1, 2023
1 parent e3573b9 commit c90c7be
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,24 @@ jobs:
with:
skip_existing: true
password: ${{ secrets.PYPI_PASSWORD }}

upload_docs:
needs: [build_docs]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
name: Unstash docs tarball
with:
name: github-pages
- name: Extract docs tarball
run: |
mkdir -p docs/_build/html
tar xvf artifact.tar --directory docs/_build/html
- name: Publish docs to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/_build/html
single-commit: true

0 comments on commit c90c7be

Please sign in to comment.