Skip to content

Also publish WebGL builds to the Vault staging CDN (alongside DoIT) - #1

Closed
mrdavidgagnon wants to merge 1 commit into
developfrom
vault-staging-preview
Closed

mrdavidgagnon wants to merge 1 commit into
developfrom
vault-staging-preview

Conversation

@mrdavidgagnon

Copy link
Copy Markdown
Member

What

Every push still builds WebGL and deploys to DoIT exactly as before. In addition, a new preview job publishes the same build artifact (no second Unity build) to the Vault staging CDN:

https://cdn.vaultlearninggames-staging.org/fielddaylab/spacefab//

The URL appears at the top of each run, in the job summary, and as View deployment on PRs.

Changes to build-webgl.yml

  • delete: trigger: deleting a branch removes its preview (remove-preview job). The Unity build job is skipped for deletes.
  • Build artifact is named per commit (spacefab-webgl-<sha>) so the preview job downloads exactly this build.
  • The preview runs even if the DoIT upload fails; it only needs the artifact.
  • Workflow-level concurrency: delete runs get their own group so they never cancel an in-progress build of the default branch.

Uses fielddaylab/vault-publisher @v1; no secrets needed (GitHub OIDC).

Testing

This branch's own push runs the full workflow, so its preview should appear at …/spacefab/vault-staging-preview/ once the build finishes. Deleting this branch after merge should remove that preview.

🤖 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>

This branch was successfully deployed

1 active deployment
vault-staging — 6fbe4d70 Deployed Sep 24, 2026 by mrdavidgagnon via preview / publish #974
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