Skip to content

Commit

Permalink
Use Github Pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed May 21, 2024
1 parent 9da6adb commit efa861b
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,25 @@ jobs:
working-directory: ./docs
run: flake8 . --exclude .venv

- name: Upload built documentation as an artifact
uses: actions/upload-artifact@v3
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: docs
path: docs/build/html
if-no-files-found: error
retention-days: 1


deploy-docs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: docs
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
id: github-pages


build-finished:
name: CI build successful
Expand Down

0 comments on commit efa861b

Please sign in to comment.