hyperspace-desktop-client-w.../.github/workflows/ci-win.yml

29 lines
888 B
YAML
Raw Normal View History

2019-09-25 23:28:15 +02:00
name: Build Windows Client
on: [push, pull_request]
jobs:
build_win:
2019-09-25 23:28:15 +02:00
runs-on: windows-latest
steps:
- name: Clone source code
uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Modify config.json
run: |
2019-12-23 18:27:45 +01:00
((Get-Content -Path .\public\config.json -Raw) -replace '/\"location\"?: \"https?:\/\/([A-Za-z0-9.]+)\",/g','\"location\": \"desktop\",') | Set-Content -Path .\public\config.json
2019-12-23 18:26:26 +01:00
shell: powershell
2019-09-25 23:28:15 +02:00
- name: Install dependencies and build
run: |
npm install
npm run build --if-present
2019-12-23 17:39:20 +01:00
npm run build-desktop-win
- name: Upload Windows executable
uses: actions/upload-artifact@v1
if: success()
with:
name: 'Windows executable (output dir)'
path: dist