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

Commit

Permalink
appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenmrev committed Feb 12, 2019
1 parent e5768e8 commit 836974e
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ build:

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 #
Expand All @@ -47,36 +50,36 @@ artifacts:
#---------------------------------#

before_deploy:
- ps: echo $env:APPVEYOR_REPO_TAG_NAME
- ps: $env:isbeta = (git describe --abbrev=0 --tags | Select-String -Pattern "beta").length -ne 0
- ps: echo $env:isbeta
- ps: $env:releasenote = (git tag -l --format='%(contents)' $env:APPVEYOR_REPO_TAG_NAME)
- ps: echo $env:releasenote
- ps: $env:tagname = (git describe --exact-match HEAD)
- ps: $env:releasenote = (git tag -l --format='%(contents)' $env:tagname)
- ps: echo $env:tagname $env:releasenote

deploy:

- provider: GitHub
release: V2RayW $(APPVEYOR_REPO_TAG_NAME)
description: $(releasenote)
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
APPVEYOR_REPO_TAG: true # deploy on tag push only
istagged: true # deploy on tag push only
isbeta: false

- provider: GitHub
release: V2RayW $(APPVEYOR_REPO_TAG_NAME)
description: $(releasenote)
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
APPVEYOR_REPO_TAG: true # deploy on tag push only
istagged: true # deploy on tag push only
isbeta: true

0 comments on commit 836974e

Please sign in to comment.