Documentation Deployment Workflow
Deploy documentation to GitHub Pages.
Overviewโ
This workflow deploys built documentation to GitHub Pages, handling the complete deployment process including building, uploading, and publishing.
When to Useโ
- โ You need to deploy documentation to GitHub Pages
- โ You want automated documentation publishing
- โ You use Docusaurus or static site generators
Inputsโ
| Input | Type | Default | Description |
|---|---|---|---|
docs_path | string | 'docs' | Path to documentation |
build_command | string | 'pnpm build' | Build command |
artifact_path | string | 'docs/build' | Path to built docs |
Usage Examplesโ
Basic Deploymentโ
jobs:
deploy-docs:
uses: Chisanan232/GitHub-Action_Reusable_Workflows-Python/.github/workflows/rw_documentation_deployment.yaml@master
permissions:
contents: read
pages: write
id-token: write
Custom Build Commandโ
jobs:
deploy-docs:
uses: Chisanan232/GitHub-Action_Reusable_Workflows-Python/.github/workflows/rw_documentation_deployment.yaml@master
with:
build_command: 'npm run build'
artifact_path: 'build'
permissions:
contents: read
pages: write
id-token: write
Related Workflowsโ
- rw_docusaurus_operations - Docusaurus operations
- Documentation Pipeline - Complete pipeline