Skip to main content
Version: Next

Documentation Deployment Workflow

View Source

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โ€‹

InputTypeDefaultDescription
docs_pathstring'docs'Path to documentation
build_commandstring'pnpm build'Build command
artifact_pathstring'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