-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
56 lines (44 loc) · 1.17 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
54
55
56
version: 0.0.{build}
branches:
only:
- master
skip_non_tags: true
image: Visual Studio 2017
platform:
- x64
cache:
- node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
- '%USERPROFILE%\AppData\Local\Yarn\cache'
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 8 x64
# - choco install yarn --ignore-dependencies
- git reset --hard HEAD
- yarn
- node --version
build_script:
- yarn build
test: off
# Deploy the Artifact to Github release
deploy:
provider: GitHub
release: v$(appveyor_repo_tag_name)
description: 'Pw Chat app release.'
auth_token:
secure: yVwqCoppXFphHs4fzjzpe6D7Sot2GZ3Hn7DAvM7cjDClnHseC9h+4OcJdyh2TM9O # your encrypted token from GitHub
artifact: App # upload setup.exe to release assets
draft: true
prerelease: true
tag: $(appveyor_repo_tag_name)
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: build\*.exe #<----Same name
name: App