mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-10-21 02:56:18 +00:00
Fix: create .env from secret in Cloudflare workflow
This commit is contained in:
1 parent
07169ddf71
commit
23bb31d56e
1 file changed
+5
-3
@@ -28,11 +28,13 @@ jobs:
|
||||
working-directory: web
|
||||
run: npm install
|
||||
|
||||
- name: Create env file
|
||||
working-directory: web
|
||||
run: echo "${{ secrets.ENV_PRODUCTION }}" > .env
|
||||
|
||||
- name: Build
|
||||
working-directory: web
|
||||
run: |
|
||||
cp .env.production .env
|
||||
npm run build
|
||||
run: npm run build
|
||||
env:
|
||||
NODE_ENV: production
|
||||
|
||||
|
||||
Reference in new issue
Block a user