Skip to content

๐Ÿ“‚ Action: Deploy GitHub Pages

Effortlessly host your QA dashboards, documentation wikis, and static reports on GitHub Pages with automated builds and SPAs support.


[!NOTE] The Deploy GitHub Pages action automates the translation of raw markdown or frontend source code into a beautiful, statically hosted website. Ideal for hosting your test automation ecosystem docs or Playwright/Behave HTML reports natively within GitHub.

๐Ÿš€ Key Impact

  • ๐Ÿ“ฆ Multi-Runtime Support: Pre-configured for Node.js environments with customizable install and build commands.
  • ๐ŸŒ SPA Ready: Automatically handles .nojekyll and 404.html redirection for modern frontend frameworks (e.g., Vite, React).
  • โšก Surgical Caching: Built-in support for npm caching to accelerate deployment cycles.
  • ๐Ÿ” Secure Deployment: Utilizes official GitHub Action primitives for trusted, authenticated deployments.

๐Ÿ› ๏ธ Configuration

Input Required Default Description
node-version No 20 Node.js runtime version.
install-command No npm ci Command to install dependencies.
build-command No npm run build Command to generate the static site.
dist-dir No ./dist Directory containing the assets to deploy.
vite-api-url No - Optional VITE_API_URL environment variable.

โšก Quick Start

Drop this snippet into your workflow:

steps:
  - name: ๐Ÿ“‚ Deploy Documentation Wiki
    uses: carlos-camara/qa-hub-actions/deploy-gh-pages@main
    with:
      dist-dir: "site/"
      build-command: "mkdocs build"

[View Full Wiki](https://carlos-camara.github.io/qa-hub-actions/actions/deploy-gh-pages/)