forked from marktext/marktext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
53 lines (40 loc) · 1.06 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
49
50
51
52
53
version: 0.1.{build}
image: Visual Studio 2017
platform:
- x64
clone_folder: c:\projects\marktext
branches:
only:
- master
- develop
- /^release-v[0-9.]+(?:-[0-9a-zA-Z\.]+)?$/
skip_tags: true
environment:
MARKTEXT_IS_STABLE: 1
MARKTEXT_EXIT_ON_ERROR: 1
GITHUB_TOKEN:
secure: Ki5AJWygDYhzMJxl0b0rDx3bhAYmar2aPdwVHiai9IigqsvZpWHLeI3qpTiiaOWL
GH_TOKEN:
secure: Ki5AJWygDYhzMJxl0b0rDx3bhAYmar2aPdwVHiai9IigqsvZpWHLeI3qpTiiaOWL
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 12 $env:PLATFORM
- node --version
- npm --version
- yarn --version
- yarn install --frozen-lockfile
cache:
- node_modules
- '%LOCALAPPDATA%\electron\Cache'
- '%LOCALAPPDATA%\electron-builder\cache'
- '%LOCALAPPDATA%\Yarn\cache'
build_script:
- yarn run lint
- yarn run validate-licenses
- yarn run test
- yarn run release:win --publish always
# Calculate checksums
- ps: get-filehash -Algorithm SHA256 "build\marktext-setup.exe"
- ps: get-filehash -Algorithm SHA256 "build\marktext-*-win.zip"
test: off