This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 405
/
appveyor.yml
85 lines (68 loc) · 2.27 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# version format
version: 1.0.{build}
# branches to build
branches:
only:
- master
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2017
#---------------------------------#
# build configuration #
#---------------------------------#
platform: Any CPU
configuration: Release
# scripts to run before build
before_build:
- cmd: nuget restore
build:
project: V2RayW.sln # path to Visual Studio solution or project
verbosity: minimal
after_build:
- cmd: 7z a V2RayW.zip %APPVEYOR_BUILD_FOLDER%\V2RayW\bin\Release\V2RayW.exe %APPVEYOR_BUILD_FOLDER%\V2RayW\bin\Release\zh-CN
- ps: $env:istagged = (git describe --exact-match HEAD | Select-String -Pattern "fatal").length -eq 0
- ps: $env:isbeta = (git describe --exact-match HEAD | Select-String -Pattern "beta").length -ne 0
- ps: echo $env:istagged $env:isbeta
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: V2RayW.zip
#---------------------------------#
# deployment configuration #
#---------------------------------#
before_deploy:
- ps: $env:tagname = (git describe --exact-match HEAD)
- ps: $env:releasenote = (git tag -l --format='%(contents)' $env:tagname) | select -Skip 2 | Out-String
- ps: echo $env:tagname $env:releasenote
deploy:
- provider: GitHub
name: release
release: $(tagname)
description: ""
auth_token:
secure: RsMjUapfJ/SjOmZ/WO8LGnyM1Xxr11QoY4QQbQQW+Utdgmw39sAx9EjmC1vhEkji
artifact: V2RayW.zip
draft: false
prerelease: false
on:
branch: master # release from master branch only
istagged: true # deploy on tag push only
isbeta: false
- provider: GitHub
name: prerelease
release: $(tagname)
description: ""
auth_token:
secure: RsMjUapfJ/SjOmZ/WO8LGnyM1Xxr11QoY4QQbQQW+Utdgmw39sAx9EjmC1vhEkji
artifact: V2RayW.zip
draft: false
prerelease: true
on:
branch: master # release from master branch only
istagged: true # deploy on tag push only
isbeta: true