Files
XC_VM/.github/workflows/pages.yml
T

47 lines
1.2 KiB
YAML

name: Deploy docs to Pages
# Runs only when the documentation actually changes, unlike GitHub's built-in
# "pages build and deployment" which fires on every push to the branch.
on:
push:
branches: [main]
paths:
- 'docs/**'
- '.github/workflows/pages.yml'
workflow_dispatch:
# Least-privilege token scoped to what deploy-pages needs.
permissions:
contents: read
pages: write
id-token: write
# Never cancel an in-flight deploy; queue the next one instead.
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v7
# docs/ is a Docsify site (client-side rendered, .nojekyll present),
# so there is no build step — the folder is uploaded verbatim.
- name: Configure Pages
uses: actions/configure-pages@v6
- name: Upload docs artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5