Skip to content

Add Hugo site and Firebase Hosting (preview deploy) - #26

Merged
robvanderveer merged 5 commits into
mainfrom
firebase-hugo-hosting
Jun 8, 2026
Merged

robvanderveer merged 5 commits into
mainfrom
firebase-hugo-hosting

Conversation

@northdpole

@northdpole northdpole commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Rebuilds the MOSAIC marketing site in Hugo with the same layout, CSS, assets, and content as the existing static site
  • Adds Firebase Hosting config for project mozaic-56ca8 / site mozaic-56ca8
  • Adds GitHub Actions workflows:
    • PR preview deploy — posts a 3-day Firebase preview URL on pull requests
    • Live deploy — deploys to the live channel on push to main (after merge)
  • Caps Firebase Hosting release retention at 5 releases per channel via scripts/set-hosting-retention.js
  • Adds privacy-friendly GoatCounter analytics (https://mosaic.goatcounter.com)
  • Documents website build, retention script, and analytics in README and CONTRIBUTING

Workflow permissions

  • Preview: contents: read, pull-requests: write, deployments: write, checks: write
  • Live: contents: read, deployments: write, checks: write

Preview

Firebase preview deploy is working on this PR. Check the bot comment for the current preview URL.

Test plan

  • FIREBASE_SERVICE_ACCOUNT secret set on OWASP/MOSAIC
  • Preview workflow runs and posts a Firebase preview URL
  • Open preview URL and verify: Home, Roadmap, Team, News, Ecosystem, Privacy
  • Compare visually with the original static site
  • Confirm GoatCounter snippet loads (no console errors)
  • After approval, merge to main for first live deploy to https://mozaic-56ca8.web.app

Rebuild the MOSAIC marketing site in Hugo with the same layout and content as the existing static site, and wire GitHub Actions for Firebase preview deploys on PRs and live deploys on main.

Co-authored-by: Cursor <cursoragent@cursor.com>
The hosting deploy action creates GitHub check runs when posting preview URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 37d64ce):

https://mozaic-56ca8--pr26-firebase-hugo-hostin-kno85w8k.web.app

(expires Thu, 11 Jun 2026 17:42:35 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: ce324a54b3966da2685f33626583cb325e08078c

Patch the live channel retainedReleaseCount before each production deploy so rollback history stays capped.

Co-authored-by: Cursor <cursoragent@cursor.com>
Uses Firebase CLI credentials locally and the service account in CI to cap retained releases on all hosting channels.

Co-authored-by: Cursor <cursoragent@cursor.com>
Document hosting retention and privacy-friendly analytics in README and CONTRIBUTING; load credentials from firebase-service-account.json or FIREBASE_SERVICE_ACCOUNT.

Co-authored-by: Cursor <cursoragent@cursor.com>
@robvanderveer
robvanderveer merged commit ac4c4b6 into main Jun 8, 2026
3 checks passed
@robvanderveer

Copy link
Copy Markdown
Collaborator

Congratulations to PR 1!

This branch was previously deployed

1 inactive deployment
production 37d64cec Deployed Jun 8, 2026 by northdpole via build_and_preview_same_repo #5
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.

2 participants