-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (33 loc) · 1.14 KB
/
release-win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release windows
on: workflow_dispatch
jobs:
release:
name: Build windows binaries
runs-on: windows-latest
timeout-minutes: 30
env:
AM_DEV_TOKEN: ${{secrets.AM_DEV_TOKEN}}
LF_API_KEY: ${{secrets.LF_API_KEY}}
LF_API_SECRET: ${{secrets.LF_API_SECRET}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install web view dependencies
run: npm install
- name: Build web view
run: npm run build:electron
- name: Install electron dependencies
working-directory: ./app
run: npm install
- name: Install castlabs-evs
working-directory: ./app
run: python -m pip install --upgrade castlabs-evs
- name: Authorize castlabs-evs
working-directory: ./app
run: python -m castlabs_evs.account reauth -A ${{secrets.CASTLABS_ACCOUNT_NAME}} -P ${{secrets.CASTLABS_PASSWORD}}
- name: Build and package electron app
working-directory: ./app
run: npm exec electron-builder -- --publish always --win