Skip to content

Installable World Backups

dxcufgb edited this page Nov 3, 2026 · 1 revision

Installable world backups

Every backup can also become a release that Foundry installs with Install World.

Turn it on

  1. Give the service's token Workflows: Read and write (classic token: the workflow scope). Without it every backup push is refused and the backup fails with a message saying so. See Create the GitHub Token.
  2. 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 with version (<UTC date>.<run number>, e.g. 2026.10.28.42), manifest and download filled in, and
  • world.zip: the world folder with that world.json at 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, 0 keeps 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:

  1. 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" }.
  2. Set FOUNDRY_PROXY_URL on 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 latest world.json under that name) and the next backup builds a release with them.
  3. 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.

Clone this wiki locally