Skip to content

Commit 73ea72f

Browse files
committed
using repo secrets
1 parent b968404 commit 73ea72f

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/build_windows.yaml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,12 @@ jobs:
1010
- name: Checkout code
1111
uses: actions/checkout@v4
1212

13-
- name: Create .env file and display values
13+
- name: Create .env file
1414
run: |
15-
# Define variables manually, handling potential secret masking
16-
$SUPABASE_URL = "${{ vars.SUPABASE_URL }}"
17-
if (-not $SUPABASE_URL) { $SUPABASE_URL = "default_url" } # Fallback for debugging
18-
19-
$SUPABASE_KEY = "${{ vars.SUPABASE_KEY }}"
20-
if (-not $SUPABASE_KEY) { $SUPABASE_KEY = "default_key" } # Fallback for debugging
21-
22-
# Write to .env file
23-
Add-Content -Path .env -Value "SUPABASE_URL=$SUPABASE_URL"
24-
Add-Content -Path .env -Value "SUPABASE_KEY=$SUPABASE_KEY"
25-
26-
# Show .env file contents
27-
type .env
15+
echo "SUPABASE_URL=${{ vars.SUPABASE_URL }}" > .env
16+
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
17+
type .env # For debugging, shows the file contents in logs
2818
29-
# Uncomment and adjust the remaining steps as needed
3019
# - name: Setup Flutter
3120
# uses: subosito/flutter-action@v2
3221
# with:
@@ -50,4 +39,4 @@ jobs:
5039
# with:
5140
# name: WindowsExecutable
5241
# path: dist/0.1.0/cookethflow-0.1.0-windows-setup.exe
53-
# retention-days: 7
42+
# retention-days: 7

0 commit comments

Comments
 (0)