post-deploy fixins ffs
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 19s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 19s
This commit is contained in:
@@ -16,8 +16,8 @@ jobs:
|
||||
# These must be configured as secrets in your Gitea repository settings.
|
||||
env:
|
||||
# Public keys needed for the React build process.
|
||||
REACT_APP_SUPABASE_URL: ${{ secrets.REACT_APP_SUPABASE_URL }}
|
||||
REACT_APP_SUPABASE_ANON_KEY: ${{ secrets.REACT_APP_SUPABASE_ANON_KEY }}
|
||||
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
|
||||
VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }}
|
||||
# Supabase token for non-interactive CLI authentication.
|
||||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
|
||||
# The project ID for linking the Supabase CLI.
|
||||
@@ -62,28 +62,6 @@ jobs:
|
||||
npm exec -- supabase functions deploy delete-user --project-ref ${{ env.SUPABASE_PROJECT_ID }}
|
||||
npm exec -- supabase functions deploy seed-database --project-ref ${{ env.SUPABASE_PROJECT_ID }}
|
||||
|
||||
# Debug step: Verify environment variables are present before build
|
||||
- name: Debug Environment Variables
|
||||
# This step now contains comprehensive checks to validate the secret.
|
||||
env:
|
||||
# We map the Gitea secret to a temporary env var for shell access.
|
||||
DEBUG_SECRET: ${{ secrets.VITE_GOOGLE_GENAI_API_KEY }}
|
||||
run: |
|
||||
echo "--- Running Comprehensive Secret Debug ---"
|
||||
echo "Step 1: Check via 'if' condition:"
|
||||
if [ "${{ secrets.VITE_GOOGLE_GENAI_API_KEY != '' }}" == "true" ]; then
|
||||
echo " ✅ SUCCESS: The 'if' condition sees the secret is NOT empty."
|
||||
else
|
||||
echo " ❌ FAILURE: The 'if' condition sees the secret IS EMPTY."
|
||||
fi
|
||||
echo "Step 2: Check via shell variable:"
|
||||
if [ -n "$DEBUG_SECRET" ]; then
|
||||
echo " ✅ SUCCESS: The shell variable \$DEBUG_SECRET is NOT empty."
|
||||
else
|
||||
echo " ❌ FAILURE: The shell variable \$DEBUG_SECRET is EMPTY."
|
||||
fi
|
||||
echo "--- End of Debug ---"
|
||||
|
||||
# --- Frontend Deployment ---
|
||||
- name: Build React Application
|
||||
# We set the environment variable directly in the command line for this step.
|
||||
|
||||
Reference in New Issue
Block a user