ci: switch to new pages workflow (#6)

This commit is contained in:
Hammy 2024-09-23 02:44:11 +01:00 committed by GitHub
parent 94e670eb93
commit 391f92c465
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
name: GitHub Pages
name: Deploy Docs
on:
push:
@ -7,11 +7,13 @@ on:
jobs:
deploy:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4
@ -22,8 +24,11 @@ jobs:
- name: Build Docs
run: nimble docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
path: "public/"
- name: Deploy artifact to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4