Skip to content

Commit 7071b2d

Browse files
committed
fix: Use .env instead of .env.local in GitHub Actions deploy
1 parent e4082dd commit 7071b2d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ jobs:
6666
- name: Generate types
6767
run: npx motia generate-types
6868

69-
- name: Create Env file
69+
- name: Create Env file from Secrets
7070
run: |
71+
# Create .env file from GitHub Secrets (secure way to pass env vars)
7172
echo "GITHUB_TOKEN=${{ secrets.GH_TOKEN }}" > .env
73+
# Add any other environment variables your app needs here
74+
# echo "OTHER_VAR=${{ secrets.OTHER_VAR }}" >> .env
7275
7376
- name: Deploy to Motia Cloud
7477
run: |
@@ -78,7 +81,7 @@ jobs:
7881
--environment-id ${{ env.MOTIA_ENV_ID }} \
7982
--version-name "${{ env.VERSION_NAME }}" \
8083
--version-description "${{ env.VERSION_DESCRIPTION }}" \
81-
--env-file .env.local
84+
--env-file .env
8285
8386
- name: Deployment Summary
8487
run: |

0 commit comments

Comments
 (0)