Skip to content

Separate Unity build, DoIT deploy and Vault staging CDN preview - #2

Merged
mrdavidgagnon merged 2 commits into
developfrom
dev-vault-staging
Sep 25, 2026
Merged

mrdavidgagnon merged 2 commits into
developfrom
dev-vault-staging

Conversation

@mrdavidgagnon

@mrdavidgagnon mrdavidgagnon commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

What

One Unity build, deployed independently to two places:

build   (fielddaylab/vault-publisher unity-build.yml@v1: Unity only, uploads an artifact)
  ├─► doit     legacy VPN + rsync → https://fielddaylab.wisc.edu/play/spacefab/ci/<branch>/
  └─► preview  Vault staging CDN  → https://cdn.vaultlearninggames-staging.org/fielddaylab/spacefab/<branch>/
remove-preview (on branch delete)
  • The two deploys don't depend on each other: a DoIT/VPN failure no longer affects the preview, and vice versa.
  • The VPN now connects right before the rsync (and waits for the tunnel), instead of before the 45-minute build.
  • Retiring DoIT later = deleting the doit job.
  • The build step now comes from the shared unity-build.yml@v1 (checkout with LFS + submodules, Library cache, runner disk cleanup, game-ci), so fixes to it reach every game.
  • The preview URL shows at the top of each run, in the job summary, and as View deployment on PRs.
  • No new secrets: the CDN uses GitHub OIDC; doit uses the existing VPN/DoIT secrets.

Replaces #1 (closed when its branch was renamed: vault-staging-preview matched the Field Day framework's *preview* build config, which currently doesn't compile; dev-vault-staging uses the same DEVELOPMENT config as develop).

Testing

This branch's own push runs all jobs; the preview should appear at …/spacefab/dev-vault-staging/. Deleting the branch after merge should remove it.

🤖 Generated with Claude Code

Adds a preview job that publishes the same build artifact to
https://cdn.vaultlearninggames-staging.org/fielddaylab/spacefab/<branch>/ via
fielddaylab/vault-publisher, and removes a branch's preview when the branch is deleted.
The Unity build and DoIT deploy are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pendent jobs

build (fielddaylab/vault-publisher unity-build.yml@v1) uploads one artifact; 'doit' (legacy VPN + rsync)
and 'preview' (Vault staging CDN) each deploy it and don't depend on each other. The VPN now connects
right before the rsync instead of before the 45-minute build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mrdavidgagnon mrdavidgagnon changed the title Also publish WebGL builds to the Vault staging CDN (alongside DoIT) Separate Unity build, DoIT deploy and Vault staging CDN preview Sep 24, 2026
@mrdavidgagnon
mrdavidgagnon merged commit 65daf1d into develop Sep 25, 2026
5 checks passed
@mrdavidgagnon
mrdavidgagnon deleted the dev-vault-staging branch September 25, 2026 05:34

This branch was successfully deployed

1 active deployment
vault-staging — f008889c Deployed Sep 24, 2026 by mrdavidgagnon via preview / publish #975
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant