[{"data":1,"prerenderedAt":348,"buildId":349},["ShallowReactive",2],{"-en-guides-project-workflows":3,"-en-guides-project-workflows-surround":296,"navigation_docs_en":305},{"id":4,"title":5,"body":6,"description":287,"extension":288,"links":289,"meta":290,"navigation":291,"path":292,"seo":293,"stem":294,"__hash__":295},"docs_en\u002Fen\u002Fguides\u002F1.project-workflows.md","Workflow architecture",{"type":7,"value":8,"toc":279},"minimark",[9,22,29,34,49,67,71,95,163,167,192,219,223,226,271],[10,11,12,13,17,18,21],"p",{},"Your project sets triggers, job dependencies and permissions in ",[14,15,16],"code",{},".github\u002Fworkflows\u002F",". Daily CI and tag publication can use the same check and build commands from ",[14,19,20],{},".github\u002Fxova.json",".",[10,23,24],{},[25,26],"img",{"alt":27,"src":28},"Triggers, checks, optional builds, downloadable artifacts and independent publication and deployment targets.","\u002Fdiagrams\u002Fworkflows-en.svg",[30,31,33],"h2",{"id":32},"triggers-and-checks","Triggers and checks",[10,35,36,37,40,41,43,44,21],{},"Pull requests and branch pushes typically call ",[14,38,39],{},"check.yml"," directly. Its default task, ",[14,42,14],{},", 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 ",[45,46,48],"a",{"href":47},"\u002Fen\u002Fguides\u002Fadoption","Run tests on pull requests",[10,50,51,52,55,56,59,60,63,64,21],{},"A tagged commit may already have passed CI. ",[14,53,54],{},"check-ci.yml"," looks for a full check at the same SHA with the same config and returns the verified ",[14,57,58],{},"source-sha",". Set ",[14,61,62],{},"run-check-on-miss: true"," to run the full check on a miss. Make publication depend on successful verification and pass that SHA as ",[14,65,66],{},"expected-sha",[30,68,70],{"id":69},"build-and-download-artifacts-optional","Build and download artifacts (optional)",[10,72,73,74,76,77,80,81,84,85,87,88,90,91,94],{},"When you need files, add a job calling ",[14,75,39],{}," with ",[14,78,79],{},"task: artifact",". Use ",[14,82,83],{},"needs"," to wait for the code check or tag verification and pass its ",[14,86,58],{},". The build returns ",[14,89,58],{}," and the ",[14,92,93],{},"artifact-id"," for this run.",[96,97,98,116],"table",{},[99,100,101],"thead",{},[102,103,104,108,113],"tr",{},[105,106,107],"th",{},"What to build",[105,109,110],{},[14,111,112],{},"artifact.kind",[105,114,115],{},"After the build",[117,118,119,137,150],"tbody",{},[102,120,121,125,130],{},[122,123,124],"td",{},"Project files such as ZIPs, APKs and checksums",[122,126,127],{},[14,128,129],{},"release-assets",[122,131,132,133,136],{},"Download the artifact from the Actions run and test the files in ",[14,134,135],{},"payload\u002F",". A tag workflow can also attach selected files to a release.",[102,138,139,142,147],{},[122,140,141],{},"Static site",[122,143,144],{},[14,145,146],{},"static",[122,148,149],{},"Download it for inspection or deploy it to GitHub Pages, Cloudflare Pages or Cloudflare Workers.",[102,151,152,155,160],{},[122,153,154],{},"Prebuilt Worker",[122,156,157],{},[14,158,159],{},"bundle",[122,161,162],{},"Package the Worker entry point, modules, configuration and static assets together for Cloudflare Workers.",[30,164,166],{"id":165},"delivery-and-targets-optional","Delivery and targets (optional)",[10,168,169,173,174,177,178,180,181,184,185,187,188],{},[170,171,172],"strong",{},"To publish a version",", call ",[14,175,176],{},"publish.yml"," from a tag. A notes-only GitHub Release can follow commit verification directly. For attachments, pass the ",[14,179,93],{}," returned by the build to the ",[14,182,183],{},"release-artifact-id"," input of ",[14,186,176],{},". With npm configured, publication packs, verifies and publishes the same tarball, then creates the GitHub Release. ",[45,189,191],{"href":190},"\u002Fen\u002Fguides\u002Freleasing","Release guide",[10,193,194,173,197,200,201,203,204,206,207,210,211,214,215],{},[170,195,196],{},"To deploy a site or Worker",[14,198,199],{},"deploy.yml"," with the build's ",[14,202,58],{}," and ",[14,205,93],{},". An independent deployment from ",[14,208,209],{},"main"," only needs the build to succeed. For a site that follows stable releases, also make deployment wait for the GitHub Release and pass ",[14,212,213],{},"release-tag",". ",[45,216,218],{"href":217},"\u002Fen\u002Fguides\u002Fdeployment","Deployment guide",[30,220,222],{"id":221},"configure-your-project","Configure your project",[10,224,225],{},"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.",[96,227,228,241],{},[99,229,230],{},[102,231,232,235,238],{},[105,233,234],{},"Complete example",[105,236,237],{},"Daily CI",[105,239,240],{},"Tag publication",[117,242,243,257],{},[102,244,245,251,254],{},[122,246,247],{},[45,248,250],{"href":249},"\u002Fen\u002Fexamples\u002Fdownloads","downloads",[122,252,253],{},"Download the source ZIP and checksum from PR, main and nightly runs.",[122,255,256],{},"Rebuild at the tag and attach the verified files to the GitHub Release.",[102,258,259,265,268],{},[122,260,261],{},[45,262,264],{"href":263},"\u002Fen\u002Fexamples\u002Fmonorepo","monorepo",[122,266,267],{},"Check the workspace and build the documentation site. Optionally deploy from main.",[122,269,270],{},"Install and test the widget tarball outside the workspace, publish to npm and create a GitHub Release. The site follows stable releases by default.",[10,272,273,274,278],{},"For a custom runner, test matrix or step order, compose the public actions in your own job. See ",[45,275,277],{"href":276},"\u002Fen\u002Fguides\u002Farchitecture","Workflow and action interfaces"," for inputs, outputs and permissions.",{"title":280,"searchDepth":281,"depth":281,"links":282},"",2,[283,284,285,286],{"id":32,"depth":281,"text":33},{"id":69,"depth":281,"text":70},{"id":165,"depth":281,"text":166},{"id":221,"depth":281,"text":222},"Your project sets triggers, job dependencies and permissions in .github\u002Fworkflows\u002F. Daily CI and tag publication can use the same check and build commands from .github\u002Fxova.json.","md",null,{},true,"\u002Fen\u002Fguides\u002Fproject-workflows",{"title":5,"description":287},"en\u002Fguides\u002F1.project-workflows","BuVbC9Z2mEsVkpXQX5_TrRyrY0JrUB0Et02sGX2840U",[297,301],{"title":298,"path":263,"stem":299,"description":300,"children":-1},"Monorepo package and documentation site","en\u002Fexamples\u002F2.monorepo","This pnpm workspace contains a private packages\u002Fcore, a publishable packages\u002Fwidget and an independent apps\u002Fdocs. 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\u002Factions.",{"title":302,"path":47,"stem":303,"description":304,"children":-1},"Adopt the workflows","en\u002Fguides\u002F2.adoption","Run a pnpm or npm project's tests on pull requests with read-only repository access.",[306,316,339],{"title":307,"path":308,"stem":309,"children":310,"page":315},"Examples","\u002Fen\u002Fexamples","en\u002Fexamples",[311,314],{"title":312,"path":249,"stem":313},"From CI downloads to tagged releases","en\u002Fexamples\u002F1.downloads",{"title":298,"path":263,"stem":299},false,{"title":317,"path":318,"stem":319,"children":320,"page":315},"Guides","\u002Fen\u002Fguides","en\u002Fguides",[321,322,323,326,329,333,337],{"title":5,"path":292,"stem":294},{"title":302,"path":47,"stem":303},{"title":324,"path":190,"stem":325},"Releasing","en\u002Fguides\u002F3.releasing",{"title":327,"path":217,"stem":328},"Deploy a site or Worker","en\u002Fguides\u002F4.deployment",{"title":330,"path":331,"stem":332},"release-it configuration","\u002Fen\u002Fguides\u002Frelease-it","en\u002Fguides\u002F5.release-it",{"title":334,"path":335,"stem":336},"npm publication results","\u002Fen\u002Fguides\u002Fpublication-results","en\u002Fguides\u002F6.publication-results",{"title":277,"path":276,"stem":338},"en\u002Fguides\u002F7.architecture",{"title":340,"path":341,"stem":342,"children":343,"page":315},"Maintenance","\u002Fen\u002Fmaintenance","en\u002Fmaintenance",[344],{"title":345,"path":346,"stem":347},"Maintain Xova Actions","\u002Fen\u002Fmaintenance\u002Fverification","en\u002Fmaintenance\u002F1.verification",1796537881035,"2d28474e-0c56-4c42-95a6-d293d7783a6d"]