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

39 lines
1.2 KiB
YAML
Raw Normal View History

2019-09-25 23:28:15 +02:00
name: Build Windows Client
on: [push, pull_request]
jobs:
build_win:
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: Change desktop field
run: |
from json import load, dump
2019-12-23 20:03:56 +01:00
json_dict = {}
with open('public/config.json', 'r') as file:
2020-07-02 18:25:08 +02:00
json_dict = load(file)
2019-12-23 20:03:56 +01:00
json_dict["location"] = "desktop"
with open('public/config.json', 'w+') as out:
2020-07-02 18:25:08 +02:00
dump(json_dict, out)
shell: python
- name: Install dependencies and build
run: |
npm install
npm run build --if-present
npm run build:win
- name: Upload Windows executable
uses: actions/upload-artifact@v1
if: success()
with:
name: "Windows executable (output dir)"
path: dist