mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-09 04:04:21 +02:00
47 lines
1.2 KiB
YAML
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
|