Every backup can also become a release that Foundry installs with Install World.
Turn it on
- Give the service's token Workflows: Read and write (classic token: the
workflowscope). Without it every backup push is refused and the backup fails with a message saying so. See Create the GitHub Token. - Turn on Publish releases on the admin page's GitHub page (
github.releases).
Every backup commit then carries src/templates/release-world.yml as .github/workflows/release-world.yml, and GitHub Actions turns each push into a release of the world.
What each installable backup holds
world.json: the world's manifest withversion(<UTC date>.<run number>, e.g.2026.10.28.42),manifestanddownloadfilled in, andworld.zip: the world folder with thatworld.jsonat the top, ready for Foundry's Install World.
A push to main makes the latest release; another branch makes a pre-release.
Repository variables
Set on the world repository under Settings → Secrets and variables → Actions → Variables:
FOUNDRY_PROXY_URL: the proxy's public address (see below).KEEP_RELEASES: how many releases and, separately, pre-releases to keep; default 10,0keeps all. The latest release is never deleted and the git history keeps every backup anyway.
Installing a private world in Foundry
The world repositories are private and Foundry cannot log in to GitHub, so Foundry installs through the Foundry release proxy:
- Give the proxy's token Contents: read-only on the world repositories, and add each world on its admin page (or in its
config.json) with the world id as the name and the world's own asset names:"my-campaign": { "repo": "<you>/foundry-world-my-campaign", "manifestAsset": "world.json", "zipAsset": "world.zip" }. - Set
FOUNDRY_PROXY_URLon the world repository to the proxy's public address (PUBLIC_BASE_URL). The release's links then point at the proxy (<proxy>/<world id>/module.json; the proxy serves the latestworld.jsonunder that name) and the next backup builds a release with them. - In Foundry: Setup → Worlds → Install World → paste
<proxy>/<world id>/module.json(also printed in each release's notes).
Without FOUNDRY_PROXY_URL the links point at GitHub (releases/latest/download/world.json), which only works for a public repository.
The workflow file is overwritten by every backup: change the template in this repository instead.
This page mirrors the World Backup to Git wiki on GitHub.