-
Notifications
You must be signed in to change notification settings - Fork 24
63 lines (54 loc) · 1.45 KB
/
ci.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
name: CI
on:
push:
branches:
- staging
- master
- trying
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16
- name: Upgrade whistle
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
npm run upgrade:whistle
- name: Install deps
run: |
npm run install-deps
npm run dateversion
- name: build app
shell: bash
run: |
if [[ "$RUNNER_OS" == "Windows" ]]; then
npm run dist:win
fi
if [[ "$RUNNER_OS" == "macOS" ]]; then
npm run dist:mac
fi
if [[ "$RUNNER_OS" == "Linux" ]]; then
npm run dist:linux
fi
env:
GH_TOKEN: ${{ secrets.github_token }}
- name: upload app
uses: actions/upload-artifact@v4
with:
name: iProxyTesting-${{ runner.OS }}
path: |
release/*.exe
release/*.dmg
release/*.AppImage