Skip to content

Commit

Permalink
Add environment variables setup step to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
realjoshuau committed Feb 23, 2024
1 parent f6bcf4f commit 283ece1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

jobs:
build:
environment: CI
runs-on: macos-12

steps:
Expand All @@ -33,6 +32,17 @@ jobs:
run: |
pnpm install --no-frozen-lockfile
- name: Setup Env Variables
# grab the env vars from {secrets.GITHUB_ENV} and write them to the env file
run: |
echo "EXPO_PUBLIC_SUPABASE_URL=${{ secrets.EXPO_PUBLIC_SUPABASE_URL }}" >> .env
echo "EXPO_PUBLIC_SUPABASE_ANON_KEY=${{ secrets.EXPO_PUBLIC_SUPABASE_ANON_KEY }}" >> .env
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> .env
echo "SUPABASE_ANON_KEY=${{ secrets.SUPABASE_ANON_KEY }}" >> .env
echo "NEXT_PUBLIC_SUPABASE_URL=${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}" >> .env
echo "NEXT_PUBLIC_SUPABASE_ANON_KEY=${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}" >> .env
echo "VERCEL_URL=${{ secrets.VERCEL_URL }}" >> .env
- name: Build
run: |
pnpm build:ios:local
Expand Down

0 comments on commit 283ece1

Please sign in to comment.