Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 836974e

Browse files
committed
appveyor
1 parent e5768e8 commit 836974e

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

appveyor.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ build:
3333

3434
after_build:
3535
- 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
3639

3740
#---------------------------------#
3841
# artifacts configuration #
@@ -47,36 +50,36 @@ artifacts:
4750
#---------------------------------#
4851

4952
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
5556

5657
deploy:
5758

5859
- provider: GitHub
59-
release: V2RayW $(APPVEYOR_REPO_TAG_NAME)
60-
description: $(releasenote)
60+
name: release
61+
release: $(tagname)
62+
description: ""
6163
auth_token:
6264
secure: RsMjUapfJ/SjOmZ/WO8LGnyM1Xxr11QoY4QQbQQW+Utdgmw39sAx9EjmC1vhEkji
6365
artifact: V2RayW.zip
6466
draft: false
6567
prerelease: false
6668
on:
6769
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
6971
isbeta: false
7072

7173
- provider: GitHub
72-
release: V2RayW $(APPVEYOR_REPO_TAG_NAME)
73-
description: $(releasenote)
74+
name: prerelease
75+
release: $(tagname)
76+
description: ""
7477
auth_token:
7578
secure: RsMjUapfJ/SjOmZ/WO8LGnyM1Xxr11QoY4QQbQQW+Utdgmw39sAx9EjmC1vhEkji
7679
artifact: V2RayW.zip
7780
draft: false
7881
prerelease: true
7982
on:
8083
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
8285
isbeta: true

0 commit comments

Comments
 (0)