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