Skip to content

Commit adcb577

Browse files
committed
fix: refactor build command in deployment workflow
- Updated the build command in deploy.yaml to utilize environment variables defined in the workflow, enhancing clarity and maintainability during the build process.
1 parent fc1a576 commit adcb577

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222
workingDirectory: apps/api
2323
packageManager: bun
2424
- name: Build Web App
25-
run: cd apps/web-app && VITE_API_URL=${{ secrets.API_URL }} VITE_WEB_APP_URL=${{ secrets.WEB_APP_URL }} VITE_MARKETING_APP_URL=${{ secrets.MARKETING_APP_URL }} VITE_STRIPE_CUSTOMER_PORTAL=${{ secrets.STRIPE_CUSTOMER_PORTAL_URL }} bun run build
25+
run: cd apps/web-app && bun run build
26+
env:
27+
VITE_API_URL: ${{ secrets.VITE_API_URL }}
28+
VITE_WEB_APP_URL: ${{ secrets.VITE_WEB_APP_URL }}
29+
VITE_MARKETING_APP_URL: ${{ secrets.VITE_MARKETING_APP_URL }}
30+
VITE_STRIPE_CUSTOMER_PORTAL: ${{ secrets.VITE_STRIPE_CUSTOMER_PORTAL }}
2631
- name: Deploy Web App
2732
uses: cloudflare/wrangler-action@v3
2833
with:

0 commit comments

Comments
 (0)