Skip to content

Deploy docs to GitHub Pages #2

Deploy docs to GitHub Pages

Deploy docs to GitHub Pages #2

Workflow file for this run

name: Deploy docs to GitHub Pages
# The gh-pages branch holds the pre-built static site. This workflow uploads it
# as a Pages artifact and deploys it, replacing the built-in (and currently
# wedged) "pages-build-deployment" pipeline.
on:
push:
branches: [gh-pages]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4