-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 1.06 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
34 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Build and deploy the Docusaurus documentation site to GitHub Pages.
# Delegates to the shared reusable workflow.
#
# One-time setup in this repo: Settings -> Pages -> Source -> "GitHub Actions".
# Without that, the deploy step fails.
name: Deploy Documentation
on:
workflow_dispatch:
push:
branches:
- main
# Only rebuild when docs content or this workflow itself changes.
# Source-code commits that don't touch docs won't trigger a deploy.
paths:
- 'docs/**'
- '.github/workflows/deploy-docs.yml'
jobs:
deploy:
uses: scottoffen/workflows/.github/workflows/docusaurus-deploy-pages.yml@v0
permissions:
contents: read
pages: write
id-token: write
# All defaults match the original workflow (docs path, Node 20, npm ci,
# npm run build), so most projects need no 'with:' block at all. Add
# inputs only if this repo deviates from the defaults, e.g.:
#
# with:
# docs-path: website
# node-version: '22'
# install-command: pnpm install --frozen-lockfile
# build-command: pnpm build