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