LGTM
This commit is contained in:
@@ -14,22 +14,24 @@ jobs:
|
||||
- name: Verify Node.js
|
||||
run: node -v
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install electron-app dependencies
|
||||
working-directory: electron-app
|
||||
run: npm ci
|
||||
|
||||
- name: Build Windows executable
|
||||
- name: Create production .env file
|
||||
working-directory: electron-app
|
||||
env:
|
||||
WS_URL: ${{ secrets.WS_URL }}
|
||||
API_URL: ${{ secrets.API_URL }}
|
||||
RELEASE_URL: ${{ secrets.RELEASE_URL }}
|
||||
NODE_ENV: production
|
||||
run: npm run electron:build -- --win
|
||||
run: |
|
||||
echo "WS_URL=${{ secrets.WS_URL }}" > .env
|
||||
echo "API_URL=${{ secrets.API_URL }}" >> .env
|
||||
echo "NODE_ENV=production" >> .env
|
||||
|
||||
- name: Upload Windows artifact
|
||||
- name: Build Windows portable executable
|
||||
working-directory: electron-app
|
||||
run: npm run build:portable
|
||||
|
||||
- name: Upload Windows portable artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: windows-exe
|
||||
path: electron-app/release/*.exe
|
||||
name: rmtPocketWatcher-Windows-Portable
|
||||
path: electron-app/release/rmtPocketWatcher-*.exe
|
||||
retention-days: 7
|
||||
|
||||
Reference in New Issue
Block a user