update .env writing
This commit is contained in:
@@ -25,10 +25,14 @@ jobs:
|
||||
|
||||
- name: Create production .env file
|
||||
working-directory: electron-app
|
||||
run: |
|
||||
echo "WS_URL=${{ secrets.WS_URL }}" > .env
|
||||
echo "API_URL=${{ secrets.API_URL }}" >> .env
|
||||
echo "NODE_ENV=production" >> .env
|
||||
env:
|
||||
WS_URL: ${{ secrets.WS_URL }}
|
||||
API_URL: ${{ secrets.API_URL }}
|
||||
run: node scripts/create-env.cjs
|
||||
|
||||
- name: Verify .env file
|
||||
working-directory: electron-app
|
||||
run: type .env
|
||||
|
||||
- name: Build TypeScript
|
||||
working-directory: electron-app
|
||||
|
||||
Reference in New Issue
Block a user