Deployment notes
March 17, 2026 ยท View on GitHub
This document describes deployment notes for testing and showcase production.
Local deployment
To start a development server, execute the following commands:
# Install all the dependencies
pnpm i
# Build all Angular Components for testing
pnpm -r build-dev
# Build the main showcase project
pnpm build-dev amc-docs
# Start the server
pnpm start
If you want to test with production builds, use the following commands:
# Install all the dependencies
pnpm i
# Build all Angular Components
pnpm -r build
# Build the main showcase project
pnpm build amc-docs
# Start the server
pnpm start
GitHub Pages
This project is configured to be deployed in GitHub Pages.
Site URL
The site is available at https://fbf-prog64.github.io/angular-material-components/.
Methods to deploy
The deployment can be done in two different ways:
Method 1: Automatic, with GitHub Actions (Recommended)
The project includes a GitHub Actions workflow that is automatically run when:
- Making a push to the
devormainbranches. - A Pull Request is made to
devormain. - The workflow is manually executed from the "Actions" tab in GitHub.
This method must be used when changing anything from Angular.
Method 2: Manual deployment
To manually deploy changes to the site, follow these steps:
- Ensure you have both NodeJS and pnpm installed.
- Clone the repository.
- Checkout the
gh-pagesbranch. - Perform the desired changes.
- Commit and push the changes directly to
origin/gh-pages.
This method must be used when changing anything static (such as common dependencies or the home page).
Important notes
- The
base-hrefis configured as/angular-material-components/. - The site files (including transpiled components) are stored in the
gh-pagesbranch.
Troubleshooting
If you have problems with publishing, please check the following:
- Check the workflow logs to determine if something failed ("Actions" tab).
- Double-check that the build completes without errors and runs locally.