mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Use actions/deploy-pages to publish to GitHub Pages
gh-pages branch is no longer used.
This commit is contained in:
parent
91aee31744
commit
70e55ac122
1 changed files with 22 additions and 5 deletions
27
.github/workflows/publish-pages.yml
vendored
27
.github/workflows/publish-pages.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue