Deployment
The documentation site is configured for:
https://vanducng.github.io/voice-agent-cli/docs/astro.config.mjs sets site to https://vanducng.github.io and base to /voice-agent-cli. @astrojs/sitemap generates the sitemap during the Astro build.
One-time repository setting
Section titled “One-time repository setting”In GitHub, open Settings -> Pages and set Source to GitHub Actions. This is required before .github/workflows/docs.yml can deploy the Pages artifact.
Workflow
Section titled “Workflow”The docs workflow:
- Runs for documentation pull requests, pushes to
main, and manual dispatches. - Installs the exact
docs/package-lock.jsonwithnpm ci --prefix docs. - Builds
docs/distwithnpm run build --prefix docs. - Uploads the Pages artifact on every run.
- Deploys only for an eligible push to
mainor manual run onmain.
The build job has read-only repository permissions. The deploy job receives pages: write and id-token: write only for the github-pages environment.
Validate locally before pushing:
npm ci --prefix docsnpm run build --prefix docsThere is no custom domain or release-version snapshot machinery. The site publishes the documentation from the deployed main commit.