You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add PR preview deployments for demo app (#330)
# Add PR Preview Deployments for Demo App
This PR enhances our CI/CD pipeline to support preview deployments for the demo app on pull requests. Key changes include:
- Modified the `deploy-demo` job to run on both PRs and main branch pushes
- Added dynamic environment selection (`preview` or `production`) based on the event type
- Replaced hardcoded Supabase credentials with environment variables from GitHub secrets
- Added conditional deployment logic to deploy to preview URLs for PRs and production for main branch
- Updated the deployment comment action to include preview URLs for PR deployments
- Added environment variable inputs to build configurations in project.json files to ensure proper cache invalidation when environment variables change
These changes will allow reviewers to see live previews of the demo app for each PR before merging to main.
0 commit comments