Workflow architecture
Your project sets triggers, job dependencies and permissions in .github/workflows/. Daily CI and tag publication can use the same check and build commands from .github/xova.json.
Triggers and checks
Pull requests and branch pushes typically call check.yml directly. Its default task, code, runs the project's checks. Scheduled and manual runs can use the same entry. A check-only workflow ends here. For a minimal setup, see Run tests on pull requests.
A tagged commit may already have passed CI. check-ci.yml looks for a full check at the same SHA with the same config and returns the verified source-sha. Set run-check-on-miss: true to run the full check on a miss. Make publication depend on successful verification and pass that SHA as expected-sha.
Build and download artifacts (optional)
When you need files, add a job calling check.yml with task: artifact. Use needs to wait for the code check or tag verification and pass its source-sha. The build returns source-sha and the artifact-id for this run.
| What to build | artifact.kind | After the build |
|---|---|---|
| Project files such as ZIPs, APKs and checksums | release-assets | Download the artifact from the Actions run and test the files in payload/. A tag workflow can also attach selected files to a release. |
| Static site | static | Download it for inspection or deploy it to GitHub Pages, Cloudflare Pages or Cloudflare Workers. |
| Prebuilt Worker | bundle | Package the Worker entry point, modules, configuration and static assets together for Cloudflare Workers. |
Delivery and targets (optional)
To publish a version, call publish.yml from a tag. A notes-only GitHub Release can follow commit verification directly. For attachments, pass the artifact-id returned by the build to the release-artifact-id input of publish.yml. With npm configured, publication packs, verifies and publishes the same tarball, then creates the GitHub Release. Release guide
To deploy a site or Worker, call deploy.yml with the build's source-sha and artifact-id. An independent deployment from main only needs the build to succeed. For a site that follows stable releases, also make deployment wait for the GitHub Release and pass release-tag. Deployment guide
Configure your project
Each project below includes a daily CI workflow and a tag workflow. Copy the project configuration and workflows that fit your project, then choose the build and delivery jobs you need.
| Complete example | Daily CI | Tag publication |
|---|---|---|
| downloads | Download the source ZIP and checksum from PR, main and nightly runs. | Rebuild at the tag and attach the verified files to the GitHub Release. |
| monorepo | Check the workspace and build the documentation site. Optionally deploy from main. | Install and test the widget tarball outside the workspace, publish to npm and create a GitHub Release. The site follows stable releases by default. |
For a custom runner, test matrix or step order, compose the public actions in your own job. See Workflow and action interfaces for inputs, outputs and permissions.
Monorepo package and documentation site
This pnpm workspace contains a private packages/core, a publishable packages/widget and an independent apps/docs. Copy the full directory, including its root lockfile and mise.toml. Replace the package name, repository and tag prefix, and replace XOVA_ACTIONS_SHA with the full SHA of a commit that passed CI in xova-dev/actions.
Adopt the workflows
Run a pnpm or npm project's tests on pull requests with read-only repository access.