Deploy Angular apps to GitHub Pages, Cloudflare Pages, or any Git repository directly from the Angular CLI.
angular-cli-ghpages is an Angular CLI builder that automates the deployment of Angular applications to static hosting services like GitHub Pages and Cloudflare Pages. It integrates directly into the Angular CLI, allowing developers to deploy their apps with a single `ng deploy` command, handling build, configuration, and Git-based deployment automatically. It solves the problem of manual, error-prone deployment processes for Angular SPAs.
Angular developers and teams who need to deploy their applications to static hosting platforms like GitHub Pages or Cloudflare Pages. It's especially useful for those using CI/CD pipelines or seeking a streamlined, CLI-integrated deployment workflow.
Developers choose angular-cli-ghpages because it eliminates manual deployment steps, integrates seamlessly with the Angular CLI, and supports flexible configurations for various hosting scenarios. Its support for tokens and CI/CD makes it reliable for automated workflows, while options like dry-run and extensive customization provide control and confidence.
🚀 Deploy your 🅰️Angular app to GitHub pages, Cloudflare Pages or any other Git repo directly from the Angular CLI! Available on NPM.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Integrates directly into the Angular CLI with a single `ng deploy` command, automating build and deployment without manual steps, as shown in the quick start guide.
Supports multiple static hosts like GitHub Pages and Cloudflare Pages, with specific options for SPA routing (e.g., `--no-notfound` for Cloudflare) and custom domains via `--cname`.
Works with personal access tokens (GH_TOKEN) and GitHub Actions tokens (GITHUB_TOKEN), enabling automated deployments in pipelines without manual git configuration.
Offers numerous CLI flags and angular.json settings for base href, branch names, commit messages, and dry-run mode, providing fine-grained control over deployments.
Only supports Git-based static hosting; it cannot handle deployments to servers requiring dynamic logic or non-Git hosts, limiting its use for full-stack applications.
Requires careful token management, as noted in the README: GH_TOKEN must be used for public repos in GitHub Actions, and token support is limited to HTTPS Git URLs, not SSH.
With many options like `--base-href` for non-root folders and `--no-notfound` for SPA routing, setup can be error-prone, especially for beginners or custom domain scenarios.
Tied to specific Angular versions (v3 supports only Angular 18-21), requiring manual version switches or updates for older or newer projects, which can break workflows.