CI-friendly releases
StaticX works from GitHub Actions without browser sessions. Store a scoped token as a repository secret, build your static output, validate index.html and 404.html, then deploy the build folder through the CLI or API.
Features
Use StaticX from CI by calling the API or CLI with a scoped token, so every successful build can publish an immutable release.
StaticX works from GitHub Actions without browser sessions. Store a scoped token as a repository secret, build your static output, validate index.html and 404.html, then deploy the build folder through the CLI or API.
Tokens can be site-scoped, workspace-scoped, or account-scoped. Use the narrowest token for CI so a single repository can only publish the site it owns.
Every CI publish creates a rollback-ready release. You can inspect it in the dashboard, compare analytics, and return to a previous version without rebuilding.
Use GitHub Actions when the repository should be the source of truth and every successful build should become a StaticX release.
Generate a site-scoped StaticX API token and store it as STATICX_API_TOKEN in GitHub repository secrets.
Run your normal build command, then verify that index.html and 404.html exist at the deployment root.
Call the StaticX CLI or API from the workflow so the build becomes a rollback-ready deployment version.
Manual uploads are easy at the beginning, but they become fragile once a team, client, or AI agent is changing the site. A missing asset, nested ZIP folder, or forgotten 404 page can put a broken release online.
With StaticX, CI deploys use the same versioning system as dashboard and CLI deploys. Each successful workflow creates an immutable release, keeps the previous release available for rollback, and records the deployment in site history.
The dashboard shows which deployment was created, when it went live, and whether it is the active version.
Use narrow token scopes so one repository can publish one site without access to unrelated projects.
The same API contract can be used by GitHub Actions, Codex, Claude, Cursor, or any automation runner.
Short, practical answers for using this page safely.
No. Use the StaticX CLI or API inside a normal GitHub Actions workflow. This keeps the deployment step transparent and easy to inspect.
The workflow should stop before publishing. The active StaticX deployment remains unchanged until a valid build is uploaded and deployed.
Yes. Use separate site-scoped tokens or project IDs per environment so staging, client previews, and production remain isolated.
Yes. A successful deploy creates the same immutable version as a dashboard or CLI deploy. Rollback changes the active pointer, not the files.