Skip to content

Read release info from the bucket and deploy on merge - #1

Merged
GoldenTadpole merged 2 commits into
mainfrom
release-info-from-bucket
Nov 8, 2026
Merged

GoldenTadpole merged 2 commits into
mainfrom
release-info-from-bucket

Conversation

@GoldenTadpole

@GoldenTadpole GoldenTadpole commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

This is the website half of the Mapee release automation (Voxelview/Mapee#15). After it merges, a Mapee release no longer requires any website change, and merging to main deploys the site automatically.

What changed

  • Release info comes from the bucket. InstallerInfoService now fetches website/installer-info.xml from the mapee_update_bucket_goldentadpole bucket. The Mapee Release workflow uploads that file on every release. If the bucket can't be reached, the site falls back to the bundled public/info/installer-info.xml. This drives the download page and the version badge in the title bar.
  • Roadmap. The "Current" entry shows the released version from the same data, instead of the hardcoded "Version 1.3.0".
  • Deploy on merge. The new .github/workflows/deploy.yml runs on every push to main, and can also be started by hand. It runs the same npm run deploy as before: angular-cli-ghpages pushes the build to gh-pages, which Pages already serves. Nothing changes in the Pages settings.

Notes for review

  • CORS. The bucket is already configured to allow https://mapee.net, https://www.mapee.net and http://localhost:4200; I checked it answers with Access-Control-Allow-Origin: https://mapee.net. Until Mapee's first automated release uploads the bucket file, the site uses the fallback, so the page shows exactly what it shows today.
  • Token. The deploy uses the built-in GITHUB_TOKEN with contents: write, so no secret needs adding. angular-cli-ghpages adds the token to the push URL itself.
  • The custom domain is kept. public/CNAME is copied into the build, and the tool still creates 404.html (so SPA routes work) and .nojekyll.
  • Copy text. The "Alpha to 26.3" text is still hardcoded, because it changes with Minecraft support rather than with Mapee releases.

Testing

  • ng build succeeds.
  • In the browser, the download page and roadmap render from the fallback (the bucket file doesn't exist yet).
  • npm run deploy -- --dry-run with the workflow's arguments targets gh-pages on this repo, with the bot's commit identity, 404.html and .nojekyll.
  • Not tested yet: the Deploy workflow itself. Its first run happens when this PR merges, so check the Actions tab and mapee.net afterwards.

🤖 Generated with Claude Code

GoldenTadpole and others added 2 commits November 8, 2026 16:36
The download page, the version badge and the roadmap's "Current" entry
now read the installer info that the Mapee Release workflow uploads to
the Google Cloud Storage bucket on every release. The site no longer
needs a commit and redeploy for each Mapee release.

If the bucket can't be reached, the site falls back to the bundled
public/info/installer-info.xml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add a Deploy workflow that runs on every push to main. It runs the same
`npm run deploy` as before (angular-cli-ghpages pushes the build to
gh-pages), so the site no longer has to be deployed from a laptop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GoldenTadpole GoldenTadpole changed the title Read installer info from the release bucket Read release info from the bucket and deploy on merge Nov 8, 2026
@GoldenTadpole
GoldenTadpole merged commit eb7277d into main Nov 8, 2026
@GoldenTadpole
GoldenTadpole deleted the release-info-from-bucket branch November 8, 2026 14:54
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