ci: harden site deployment with Supabase support#25215
Closed
kanjiz1 wants to merge 1 commit into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainpushes, and manual dispatch with explicit missing-secret and curl failure handling.SUPABASE_MIGRATIONS_ENABLED=true, guarded torefs/heads/main, and ordered before the Vercel hook.Validation
ruby -e 'require "yaml"; YAML.load_file(".github/workflows/deploy-site.yml")'python3/tomllibparse ofsupabase/config.tomlgit diff --cached --checkgo run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/deploy-site.ymlnpm ci --no-audit --prefix websitenpm run build --prefix websitesucceeded; existing Docusaurus warnings remain for pre-existing docs links/anchors.Deployment notes
Secrets/variables still need to be configured after merge before deployment is fully operational:
VERCEL_DEPLOY_HOOKSUPABASE_URL,SUPABASE_PUBLISHABLE_KEYor legacySUPABASE_ANON_KEY; server-onlySUPABASE_SECRET_KEYor legacySUPABASE_SERVICE_ROLE_KEYonly if backend code needs elevated server access.SUPABASE_ACCESS_TOKEN,SUPABASE_PROJECT_ID,SUPABASE_DB_PASSWORDSUPABASE_MIGRATIONS_ENABLED=trueSUPABASE_CLI_VERSION