---
title: "Workflow architecture"
description: "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."
canonical_url: "https://actions.xovajs.com/en/guides/project-workflows"
---
# 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.

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, checks, optional builds, downloadable artifacts and independent publication and deployment targets.](https://actions.xovajs.com/diagrams/workflows-en.svg)

## 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](https://actions.xovajs.com/en/guides/adoption).

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](https://actions.xovajs.com/en/guides/releasing)

**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](https://actions.xovajs.com/en/guides/deployment)

## 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](https://actions.xovajs.com/en/examples/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](https://actions.xovajs.com/en/examples/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](https://actions.xovajs.com/en/guides/architecture) for inputs, outputs and permissions.


## Sitemap

See the full [sitemap](https://actions.xovajs.com/sitemap.md) for all pages.
