33
33
34
34
after_build :
35
35
- cmd : 7z a V2RayW.zip %APPVEYOR_BUILD_FOLDER%\V2RayW\bin\Release\V2RayW.exe %APPVEYOR_BUILD_FOLDER%\V2RayW\bin\Release\zh-CN
36
+ - ps : $env:istagged = (git describe --exact-match HEAD | Select-String -Pattern "fatal").length -eq 0
37
+ - ps : $env:isbeta = (git describe --exact-match HEAD | Select-String -Pattern "beta").length -ne 0
38
+ - ps : echo $env:istagged $env:isbeta
36
39
37
40
# ---------------------------------#
38
41
# artifacts configuration #
@@ -47,36 +50,36 @@ artifacts:
47
50
# ---------------------------------#
48
51
49
52
before_deploy :
50
- - ps : echo $env:APPVEYOR_REPO_TAG_NAME
51
- - ps : $env:isbeta = (git describe --abbrev=0 --tags | Select-String -Pattern "beta").length -ne 0
52
- - ps : echo $env:isbeta
53
- - ps : $env:releasenote = (git tag -l --format='%(contents)' $env:APPVEYOR_REPO_TAG_NAME)
54
- - ps : echo $env:releasenote
53
+ - ps : $env:tagname = (git describe --exact-match HEAD)
54
+ - ps : $env:releasenote = (git tag -l --format='%(contents)' $env:tagname)
55
+ - ps : echo $env:tagname $env:releasenote
55
56
56
57
deploy :
57
58
58
59
- provider : GitHub
59
- release : V2RayW $(APPVEYOR_REPO_TAG_NAME)
60
- description : $(releasenote)
60
+ name : release
61
+ release : $(tagname)
62
+ description : " "
61
63
auth_token :
62
64
secure : RsMjUapfJ/SjOmZ/WO8LGnyM1Xxr11QoY4QQbQQW+Utdgmw39sAx9EjmC1vhEkji
63
65
artifact : V2RayW.zip
64
66
draft : false
65
67
prerelease : false
66
68
on :
67
69
branch : master # release from master branch only
68
- APPVEYOR_REPO_TAG : true # deploy on tag push only
70
+ istagged : true # deploy on tag push only
69
71
isbeta : false
70
72
71
73
- provider : GitHub
72
- release : V2RayW $(APPVEYOR_REPO_TAG_NAME)
73
- description : $(releasenote)
74
+ name : prerelease
75
+ release : $(tagname)
76
+ description : " "
74
77
auth_token :
75
78
secure : RsMjUapfJ/SjOmZ/WO8LGnyM1Xxr11QoY4QQbQQW+Utdgmw39sAx9EjmC1vhEkji
76
79
artifact : V2RayW.zip
77
80
draft : false
78
81
prerelease : true
79
82
on :
80
83
branch : master # release from master branch only
81
- APPVEYOR_REPO_TAG : true # deploy on tag push only
84
+ istagged : true # deploy on tag push only
82
85
isbeta : true
0 commit comments