Skip to content

Commit

Permalink
Merge pull request #808 from cjmayo/actions_deploy-pages
Browse files Browse the repository at this point in the history
Use actions/deploy-pages to publish to GitHub Pages
  • Loading branch information
cjmayo committed Mar 21, 2024
2 parents 91aee31 + 70e55ac commit 640b9f6
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,26 @@ jobs:
python3 -m hatchling build -t sdist --hooks-only
make -C doc html
- name: Publish
uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/html
commit_message: ${{ github.event.head_commit.message }}
path: "doc/html"


deploy:

needs: run

runs-on: ubuntu-latest
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 640b9f6

Please sign in to comment.