We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4082dd commit 7071b2dCopy full SHA for 7071b2d
1 file changed
.github/workflows/deploy.yml
@@ -66,9 +66,12 @@ jobs:
66
- name: Generate types
67
run: npx motia generate-types
68
69
- - name: Create Env file
+ - name: Create Env file from Secrets
70
run: |
71
+ # Create .env file from GitHub Secrets (secure way to pass env vars)
72
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
75
76
- name: Deploy to Motia Cloud
77
@@ -78,7 +81,7 @@ jobs:
78
81
--environment-id ${{ env.MOTIA_ENV_ID }} \
79
82
--version-name "${{ env.VERSION_NAME }}" \
80
83
--version-description "${{ env.VERSION_DESCRIPTION }}" \
- --env-file .env.local
84
+ --env-file .env
85
86
- name: Deployment Summary
87
0 commit comments