-
-
Notifications
You must be signed in to change notification settings - Fork 50
87 lines (83 loc) · 2.49 KB
/
release.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Build
on:
push:
branches:
- main
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
jobs:
build-vite:
# needs: build-packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14"
cache: "yarn"
cache-dependency-path: |
vite/yarn.lock
tree/yarn.lock
- name: Install lib tree
run: cd tree && yarn
- name: Build lib tree
run: cd tree && yarn run compile
- name: Install Vite package
run: cd vite && yarn
- name: Build Vite
run: cd vite && yarn run build
- name: "Upload Artifact"
uses: actions/upload-artifact@v2
with:
name: vite
path: vite/dist
retention-days: 1
release-macos:
needs: build-vite
runs-on: macos-latest
env:
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 14
- name: Install Server package
run: cd server && yarn
- name: Download built Vite files
uses: actions/download-artifact@v2
with:
name: vite
path: server/build
- name: Build app
run: cd server && ./node_modules/.bin/electron-builder -p always
# - name: "Upload Artifact"
# uses: actions/upload-artifact@v2
# with:
# name: Upload build file
# path: server/dist
# retention-days: 1
release-linux-window:
needs: build-vite
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Install wine
run: |
sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
sudo add-apt-repository ppa:cybermax-dexter/sdl2-backport
sudo apt-add-repository "deb https://dl.winehq.org/wine-builds/ubuntu $(lsb_release -cs) main"
sudo apt install --install-recommends winehq-stable
- name: Install Server package
run: cd server && yarn
- name: Download built Vite files
uses: actions/download-artifact@v2
with:
name: vite
path: server/build
- name: Build app
run: cd server && ./node_modules/.bin/electron-builder -wl -p always