-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (63 loc) · 1.73 KB
/
build.yaml
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
name: Build
on:
push:
branches:
- 'main'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build_linux_windows:
runs-on: ubuntu-latest
steps:
- name: install wine
run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install -y libgcc-s1:i386 libstdc++6:i386 wine32 wine
- uses: actions/checkout@v3
- name: check env variables
run: ./check-envs.sh
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: install dependencies
run: npm install
- name: build
run: npm run build
- name: publish
env:
gh_token: ${{ secrets.GITHUB_TOKEN }}
run: npm run release
# build_on_mac:
# runs-on: macos-latest
# env:
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_ID_PASS: ${{ secrets.APPLE_ID_PASS }}
# steps:
# - uses: actions/checkout@v2
# - name: check env variables
# run: ./check-envs.sh --mac
# - uses: actions/setup-node@master
# with:
# node-version: 20
# - name: install dependencies
# run: npm install
# - name: build
# run: npm run build
# - name: publish
# run: npm run release
# build_on_win:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
# - name: check env variables
# run: .\check-envs.ps1
# - uses: actions/setup-node@master
# with:
# node-version: 20
# - name: install dependencies
# run: npm install
# - name: build
# run: npm run build
# - name: publish
# env:
# gh_token: ${{ secrets.GITHUB_TOKEN }}
# run: npm run release