๐ 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
.nojekylland404.htmlredirection for modern frontend frameworks (e.g., Vite, React). - โก Surgical Caching: Built-in support for
npmcaching 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/)