CI/CD & GitHub Pages Deployment
GitHub Actions Workflows
Vectrace utilizes automated GitHub Actions for Continuous Integration, release packaging, and VitePress site deployment:
ci.yml: Runscargo checkand unit tests. On git tags (v*), builds release artifacts (.AppImage,.deb,.rpm,.tar.gz) and publishes GitHub Releases automatically.deploy-docs.yml: Builds VitePress documentation (Node 24 + pnpm) and deploys automatically to GitHub Pages.
All JavaScript-based Actions in these workflows target the Node 24 runtime (actions/checkout@v5, actions/setup-node@v5, softprops/action-gh-release@v3, etc.).
Setting Up GitHub Pages
To enable documentation hosting on GitHub:
- Go to repository Settings ➔ Pages.
- Under Source, select GitHub Actions.
- Pushing changes to the
mainbranch automatically deploys the latest docs tohttps://jigonzalez930209.github.io/vectrace/.
GitHub Releases (tag v*)
The release job needs permission to create releases with GITHUB_TOKEN:
- In the workflow,
build-release-packagessetspermissions: contents: write(already configured). - Also check repo Settings → Actions → General → Workflow permissions:
- Prefer Read and write permissions, or
- Keep read-only at org/repo default and rely on the per-job
permissions:block above.
Without contents: write, softprops/action-gh-release fails with:
403 Resource not accessible by integration