forked from malept/electron-forge-demo123
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
48 lines (45 loc) · 1.03 KB
/
.appveyor.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
image:
- Visual Studio 2019
- Ubuntu
- macOS
stack: node 12
environment:
nodejs_version: "12"
GITHUB_TOKEN:
secure: t1s7bP+lo6z4Gv+F0J2pvD4KY2nzgdtOtrz/eN3Q41XgoV4+GnBtuY2oHQdQJ1nH
cache:
- '%LOCALAPPDATA%\Yarn'
- '$HOME/.yarn'
- '%LOCALAPPDATA%\electron\Cache'
- '$HOME/.cache/electron'
- '$HOME/Library/Caches/electron'
- node_modules
branches:
only:
- main
- /^v\d\.\d\.\d/
install:
- ps: |
if ($isWindows) {
Install-Product node $env:nodejs_version x64
bash.exe --version
bash.exe ci/setup-windows-certificate.sh
} elseif ($isLinux) {
sudo apt-get update
} else {
brew install yarn
}
- sh: ci/platform_setup.sh
- yarn
test_script:
- node --version
- yarn --version
- yarn lint
- cmd: if %APPVEYOR_REPO_TAG% EQU false yarn make
- sh: if test "$APPVEYOR_REPO_TAG" = "false"; then yarn make; fi
build_script:
- cmd: IF %APPVEYOR_REPO_TAG% EQU true yarn run publish
- sh: if test "$APPVEYOR_REPO_TAG" = "true"; then yarn run publish; fi
artifacts:
- path: out/make/**/*
name: Distributables