Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett4wade committed Jun 19, 2024
1 parent 1198a23 commit 0a4e4d2
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@ on: push

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: garrett4wade/sphinx-pages@master
- uses: actions/checkout@v4
- name: Build HTML
uses: garrett4wade/sphinx-action@master
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
create_readme: true
publish_dir: docs/build/html

0 comments on commit 0a4e4d2

Please sign in to comment.