GitHub Actions
Stride Docs is built and published by GitHub Actions. Every workflow does the same fundamental thing, run BuildDocs.ps1 to render the documentation into the _site folder, and they differ only in what triggers them and where the output goes.
You don't need to touch these workflows to contribute content. This page is here so that, when you open the Actions tab and see a run, you understand what it is doing and why.
| Workflow file | Name in the Actions tab | Trigger | Target |
|---|---|---|---|
| stride-docs-deploy-azure.yml | Deploy Stride Docs to Azure Web App 🚀 | Manual, from the branch of the version | The version folder (i.e. 4.4/), and from master the unversioned sections (en/) and the root files (versions.json, web.config, robots.txt) of the Azure Web App stride-doc, slot staging or Production |
| stride-docs-github.yml | Build Stride Docs for GitHub Staging | Manual only | GitHub Pages in your own fork |
| stride-docs-test-build.yml | Build Stride Docs - Test Build | Manual only | Nothing, build artifact only |
The big picture
flowchart LR
PR[Pull request] --> master[master branch]
master -.->|manual| WD[stride-docs-deploy-azure.yml]
old[master-4.3, ... branches] -.->|manual| WD
master -.->|manual dispatch only| WG[stride-docs-github.yml]
master -.->|manual dispatch only| WT[stride-docs-test-build.yml]
WD --> AV["Azure: version folder (4.4/, 4.3/, ...),<br/>and from master en/, versions.json, web.config, robots.txt"]
WG --> GH[GitHub Pages]
WT --> AA[Artifact only, no deployment]
The site hosts the documentation of several versions, each in its own folder (4.4/, 4.3/, ...), the sections that aren't versioned in en/ (contributing, community resources and release notes, see unversioned in versions.json), and a few files at its root shared by all versions:
versions.jsonlists the versions shown in the version selector and which one is the latestweb.configserves/latest/from the latest version folder, and holds the redirection rules, i.e. from the unversioned sections of every version toen/, and from a version that has no folder on the site (i.e. the version in development) to/latest/robots.txtkeeps search engines on/latest/
Each version is deployed from its own branch (master for the version in development, master-4.3 for 4.3, ...) and only replaces its own folder. The root files are always deployed from master, so deploying an older version never changes which version is the latest. Making a version the latest one is a change to versions.json followed by a deploy of the root files (Sections root), without rebuilding any documentation.
master is the default branch and the target for pull requests. Nothing is deployed automatically, a maintainer runs the deployment manually from the Actions tab, choosing the branch, the Azure slot (staging or production) and the sections.
Who can run these workflows
On the stride3d/stride-docs repository, running a workflow requires write access, so in practice only maintainers can trigger a deployment. If you don't have write access you can watch the runs, read the logs and download the build artifacts, but the Run workflow button won't be available to you.
Opening a pull request doesn't deploy anything either. None of the workflows declare a pull_request trigger, so your PR is reviewed from the diff and from whatever preview you provide yourself.
The Azure workflow guards its job with a repository check:
if: github.repository == 'stride3d/stride-docs'
This means that in a fork it doesn't merely fail, its job is skipped entirely and the run finishes grey rather than red. Deploying to Azure from a fork would require your own Azure Web App, your own publish profile secrets and removing that guard, which is described in Setting up a new Azure Web App.
The two workflows without that guard, stride-docs-github.yml and stride-docs-test-build.yml, are the ones intended for contributors:
| Workflow | In your fork | What it needs |
|---|---|---|
stride-docs-github.yml |
✅ Publishes to your GitHub Pages | Pages enabled with the GitHub Actions source |
stride-docs-test-build.yml |
✅ Builds and gives you an artifact | Nothing |
| The Azure workflow | ⏭️ Its job is skipped | Your own Azure infrastructure |
Tip
Deploying to GitHub Pages is by far the easier route and is what we recommend for showing off a change. It is free, needs no Azure account, and the setup is a one-time repository setting. Follow Deployment to GitHub Pages and share the resulting link in your pull request. Optionally, run it locally, using Installation and share screenshots of the local preview.
Note that GitHub disables Actions on newly forked repositories by default. The first time you open the Actions tab in your fork you'll need to confirm that you want to enable them before any Run workflow button appears.
The shared build
Every workflow builds the documentation through the same composite action (a deploy of the root files alone builds nothing), .github/actions/setup-stride. Keeping the build in one place means these workflows stay in sync automatically; if you need to change how the documentation is built, that file is almost always the one to edit.
All builds run on a Windows runner (windows-2025-vs2026). Windows is required because the build compiles the Stride solution to extract the API documentation.
flowchart TD
A[Checkout stride-docs<br/>with Git LFS] --> B[setup-stride composite action]
subgraph B[setup-stride]
direction TB
B1[Install .NET 10 SDK] --> B3[Checkout stride3d/stride<br/>with Git LFS]
B3 --> B6[Install DocFX]
B6 --> B7["build-all.bat<br/>(runs BuildDocs.ps1)"]
end
B --> C[_site folder]
Step by step:
- Checkout Stride Docs into a
stride-docsfolder, withlfs: trueso that images and other large assets are fetched rather than left as pointer files - Install the .NET 10 SDK
- Checkout stride3d/stride into a sibling folder, also with Git LFS. The engine source is needed to generate the API reference, its upgrade steps to check the upgrade guide, and its
docsfolder gives the engine architecture pages of the contributors section - Install DocFX as a global tool, at a specific version (see Upgrading Docfx)
- Build the documentation by running
build-all.bat, which drivesBuildDocs.ps1in non-interactive mode and writes the result into_site
Every build is traceable back to its sources: the footer of each page links to the stride-docs and stride commits it was built from, and build.json in the version folder (i.e. /4.4/build.json) and in /en/ lists them with their branches, the build date and the GitHub Actions run. The deploy also writes one for the root files, /build.json, with the stride-docs commit only.
For what happens inside that last step, languages, versions, API metadata and the post-processing passes, see Generation Pipeline.
Note
Because the build compiles Stride and generates the full API reference, it is considerably heavier than a typical static-site build. This is why the PDF and API steps can be skipped, as described below.
Manual run inputs
Every workflow that can be dispatched manually offers the same three inputs:
| Input | Default | Effect |
|---|---|---|
| Skip PDF building | true |
Passes -SkipPdfBuilding, omitting the PDF generation pass |
| Skip API building | true |
Passes -SkipApiBuilding, omitting the Stride API reference |
| Stride branch to checkout | empty | Which branch of stride3d/stride the API reference is generated from. When empty, the branch matching the one the workflow runs from: master-4.3 for master-4.3 (or e.g. master-4.3-fix), master otherwise |
Both skip options default to true because they are the slowest parts of the build. Leave them on for a quick content preview; turn them off when you specifically need to check the API reference or the PDF output.
The deploy workflow is the exception: both options only apply to staging, a production deploy always builds the API reference and the PDF. A deploy replaces the whole version folder, so a version deployed without them would lose them. Skip API building also defaults to false.
Azure workflow
The Azure workflow, stride-docs-deploy-azure.yml, deploys to the Azure Web App stride-doc. The slot input chooses where:
| Production | Staging | |
|---|---|---|
app-name |
stride-doc |
stride-doc |
slot-name |
Production |
staging |
| GitHub environment | Production |
Staging from master and master-*, Staging-branch from other branches |
| Publish profile | Secret AZURE_PUBLISH_PROFILE of the Production environment |
Secret AZURE_PUBLISH_PROFILE of the Staging and Staging-branch environments (the same staging slot profile) |
| URL | doc.stride3d.net | stride-doc-staging.azurewebsites.net |
For production, it also purges the cache of Azure Front Door, which serves doc.stride3d.net. It signs in to Azure with the variables AZURE_CLIENT_ID, AZURE_TENANT_ID and AZURE_SUBSCRIPTION_ID of the Production environment, without any secret.
Each publish profile is a secret of its environment, so only jobs running in that environment can use it:
Productiononly accepts the branchesmasterandmaster-*, and has the teamstride-website-publishersas required reviewers: a deployment waits until one of its members approves it (Review deployments on the run page), even when they started it themselvesStagingonly accepts the branchesmasterandmaster-*, without approval, since what reached them went through a pull request or an adminStaging-branchaccepts any branch, to test a branch on staging, with the same required reviewers asProduction: a branch can change the workflow it runs, so only an approval keeps the staging publish profile from it
It uses Azure Web Apps Deploy v3 with a target-path, which deploys only into that path of the site. Nothing outside of it is removed, so the other versions stay untouched.
For how the Azure Web App itself is configured, see Deployment.
Sections
The workflow runs from the branch of the version to deploy, for example master for the version in development or master-4.3 for 4.3. Its Sections input chooses what it deploys:
| Sections | Deploys | Takes |
|---|---|---|
all (default) |
The version folder (i.e. 4.4/), and from master the unversioned sections (en/) and the root files, in that order |
About 19 minutes, most of it the API and the upload of the version folder |
versioned |
The version folder only | Almost as long as all |
unversioned |
The unversioned sections only: release notes, contributing, community resources, upgrade guide. Only from master, the run fails from another branch |
About 5 minutes, without the API |
root |
The root files only: versions.json, web.config and robots.txt. Only from master, the run fails from another branch |
About a minute, on a Linux runner, without any build |
The links between the two builds don't depend on the other build (see Generation Pipeline), so a deploy of one of them links to the other like a full deploy does. A change that spans several sections needs all, for example a manual page that links to a new release notes or upgrade guide page, a page moved between them, or a new unversioned section, whose pages are in en/ and whose redirects are in web.config.
A run of all or versioned from master-4.3 deploys only the version: the unversioned sections and the root files are maintained on master.
- Writes the run summary, in a short job of its own, before the deploy job waits for its approval (see Changes of a run below)
- Builds the documentation (
-SectionsofBuildDocs.ps1): the version folder in_site(i.e.4.4/) being the highest version of the branch'sversions.json, and the unversioned sections (_site/en).rootbuilds nothing - Deploys the version folder to
/home/site/wwwroot/4.4withclean: true, which replaces its whole content, so pages removed from the documentation are removed from the site too - Deploys the unversioned sections to
/home/site/wwwroot/enthe same way - Deploys the search index of each folder it didn't build, without
clean(see Search index below) - Checks, on the Azure Web App itself, that
build.jsonof each deployed folder has the commit just built, and that each search index deployed alone is the one just merged - Deploys the root files and checks them (see Root files below). They come last, so that their redirects only point to pages already deployed
- For production, except
root, creates a draft GitHub Release tagged2.0.0.<run number>, which is why this workflow requestscontents: writepermission - For production, purges the Azure Front Door cache of what it deployed: the version folder (i.e.
/4.4/*),/latest/*when it's the latest version,/en/*, and each search index deployed alone. With the root files, it purges everything:web.configchanges the redirects of every version and what/latest/serves
The whole deploy is one job, so a production deploy waits for one approval, and no other run deploys to the slot between the documentation and the root files.
The workflow deploys to a slot one run at a time, and the others wait in line. A newer run from the same branch, with the same slot and sections, cancels the older one, also while it waits for approval, so only the latest run can be approved. To go back to an earlier version, revert it on its branch, or re-run the older run of the workflow.
Changes of a run
The summary of a run lists what it changes on the slot, so that an approver can check it on the run page before Review deployments. For each folder the run deploys, it reads the build.json that the slot serves for it, and gives:
- The commit and run that deployed it, and the Stride commits since its Stride commit, which change the API and the architecture pages
- A link to the comparison of the two commits on GitHub
- The commits that change the folder's pages:
en/without the unversioned sections for the version folder, the unversioned sections foren/, andversions.json,web.config,robots.txtandBuildSiteRoot.ps1for the root files - Their files, each linked to its diff in the comparison
- The other commits since, such as build scripts, workflows or other sections
- A warning when the deployed commit has commits that the run's commit doesn't, whose changes the run removes
A folder deployed before deploys wrote build.json (4.2/ and older) has no summary. The summary is informative only: when it fails, the deploy goes on.
Search index
The search index of a page has the pages of both builds: <version>/en/index.json has that version and the unversioned sections, /en/index.json has the latest version (latest of the deployed versions.json) and the unversioned sections, so that its results open in /latest/. A deploy merges what it built with the other half taken from the indexes deployed on its slot (-SearchIndexSite of BuildDocs.ps1), and updates the index of the other side too:
- A deploy of the version folder takes the unversioned pages from
/en/index.json. When it's the latest version, it also deploys/en/index.jsonwith the new versioned pages. - A deploy of the unversioned sections takes the versioned pages from
/<latest>/en/index.json(or from its own build when it built the latest version), and also deploys/<latest>/en/index.jsonwith the new unversioned pages.
The index of another version gets the current unversioned pages at its next deploy.
The documentation of a version not released yet (a beta) can be deployed to production as well: it's available in its own folder, without being the latest. Game Studio loads its getting started links from there, and the Stride Launcher its release notes from the unversioned sections, which have the release notes of every version.
Root files
The workflow runs BuildSiteRoot.ps1 to generate the root files from master for the slot, and deploys them together as a zip, without cleaning (the folders are left untouched):
versions.json, as is. The version selector of every version reads it, including old versions that can't be updated anymore, so its format can only gain fieldsweb.config, with%latest_version%replaced by the latest version ofversions.json,%unversioned_sections%by its unversioned sections, and%client_cache_mode%by how long browsers keep the files: an hour on production, andno-cacheon staging, where a browser checks each file again so that a deploy shows at oncerobots.txt, with aDisallowfor each version ofversions.json
With them, it deploys build.json, the commit they come from. It then checks them on the Azure Web App: versions.json is the one generated, build.json has the run's commit, Cache-Control matches the slot, and the redirects of web.config answer as expected.
After a change of the latest version, deploy the unversioned sections from master (Sections unversioned): until then, the search of /en/ pages finds the pages of the previous latest version.
GitHub Pages workflow
flowchart TD
D[workflow_dispatch only] --> A[Checkout + setup-stride]
A --> B["upload-pages-artifact<br/>path: stride-docs/_site"]
B -->|needs: build| C[deploy job]
C --> E[actions/deploy-pages]
E --> F[GitHub Pages]
This workflow uses GitHub's native Pages deployment: actions/upload-pages-artifact packages _site, and actions/deploy-pages publishes it directly to the Pages service.
Important
There is no gh-pages branch involved. Nothing is committed to your repository, so don't go looking for a branch after the run, the site is served straight from the uploaded artifact. In your fork, set Settings → Pages → Source to GitHub Actions rather than Deploy from a branch.
Two details make this workflow distinctive:
- It declares
pages: writeandid-token: writepermissions, which the Pages deployment requires in order to authenticate without any stored secret - It sets
concurrency: group: pageswithcancel-in-progress: true, so starting a new run cancels any deployment still in flight and the last run always wins
Because documentation is published under a version and language folder, your site will be at https://[your-username].github.io/stride-docs/4.4/en rather than at the root. See Deployment to GitHub Pages for the full walkthrough.
Test build workflow
stride-docs-test-build.yml is the simplest of the workflows building the documentation: a single build job that runs the shared setup and uploads the DocFX-app artifact. There is no deployment step at all.
Use it when you want to confirm that a change actually builds, particularly one touching BuildDocs.ps1, docfx.json or the table of contents, without publishing anything anywhere. Download the artifact from the run page to inspect the generated HTML.
Running a workflow manually
- Go to the repository Actions tab
- Pick the workflow in the left sidebar
- Click Run workflow, choose the branch, adjust the inputs if needed, and confirm
Caution
For the version deployment, choose the branch of the version to deploy. Running it from a feature branch with the production slot would build that branch's content and publish it straight to doc.stride3d.net, replacing the version folder it documents.
Related pages
- Deployment - setting up the Azure Web App and deploying to GitHub Pages
- Generation Pipeline - what
BuildDocs.ps1does during the build - Installation - running the same build on your machine
- Major Release Workflow - how documentation releases are coordinated