Skip to content

Fix Firebase previews for fork pull requests - #33

Merged
northdpole merged 1 commit into
mainfrom
fix/fork-pr-preview-deploy
Aug 27, 2026
Merged

northdpole merged 1 commit into
mainfrom
fix/fork-pr-preview-deploy

Conversation

@northdpole

Copy link
Copy Markdown
Collaborator

Summary

  • Fork PRs never receive FIREBASE_SERVICE_ACCOUNT on pull_request, which is why Moved Hugo site, scripts, and npm config under website/ #32's preview job failed with Input required and not supplied: firebaseServiceAccount.
  • PR workflows now only build Hugo and upload an artifact.
  • A trusted workflow_run job on this repo deploys that artifact to a Firebase preview channel, so anyone can open a fork PR and still get a preview.

Test plan

Made with Cursor

Fork pull_request jobs cannot read FIREBASE_SERVICE_ACCOUNT. Build the
site on the PR, then deploy the artifact from a trusted workflow_run.
@northdpole
northdpole merged commit e58c2cd into main Aug 27, 2026
1 check passed
@northdpole
northdpole deleted the fix/fork-pr-preview-deploy branch August 27, 2026 11:34
@github-actions

Copy link
Copy Markdown

Firebase preview for this PR:

["https://mozaic-56ca8--pr-33-junu2fxg.web.app"]

Expires: 2026-08-30T11:34:43.331972616Z

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