try release_name for deploy
This commit is contained in:
parent
a7d8de0bd2
commit
b7a07bb483
14
appveyor.yml
14
appveyor.yml
|
@ -9,20 +9,24 @@ environment:
|
||||||
WIN_PKG: C:\Users\appveyor\.pkg-cache\v2.5\fetched-v10.4.1-win-x64
|
WIN_PKG: C:\Users\appveyor\.pkg-cache\v2.5\fetched-v10.4.1-win-x64
|
||||||
|
|
||||||
init:
|
init:
|
||||||
- ps: Install-Product node 10
|
|
||||||
- ps: |
|
- ps: |
|
||||||
if($env:DEBUG_RDP -eq "true") {
|
if($env:DEBUG_RDP -eq "true") {
|
||||||
iex ((new-object net.webclient).DownloadString(`
|
iex ((new-object net.webclient).DownloadString(`
|
||||||
'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||||
}
|
}
|
||||||
|
- ps: Install-Product node 10
|
||||||
install:
|
|
||||||
- ps: |
|
- ps: |
|
||||||
$env:PACKAGE_VERSION = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version
|
|
||||||
$env:PATH = "C:\Program Files (x86)\Resource Hacker;${env:PATH}"
|
$env:PATH = "C:\Program Files (x86)\Resource Hacker;${env:PATH}"
|
||||||
if(Test-Path -Path $env:WIN_PKG) {
|
if(Test-Path -Path $env:WIN_PKG) {
|
||||||
$env:VER_INFO = "true"
|
$env:VER_INFO = "true"
|
||||||
}
|
}
|
||||||
|
if($env:APPVEYOR_REPO_TAG -eq "true") {
|
||||||
|
$tagName = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
|
||||||
|
$env:RELEASE_NAME = "Version ${tagName}"
|
||||||
|
}
|
||||||
|
|
||||||
|
install:
|
||||||
|
- ps: $env:PACKAGE_VERSION = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version
|
||||||
- ps: choco install reshack --no-progress
|
- ps: choco install reshack --no-progress
|
||||||
- ps: choco install cloc --no-progress
|
- ps: choco install cloc --no-progress
|
||||||
- ps: choco install checksum --no-progress
|
- ps: choco install checksum --no-progress
|
||||||
|
@ -73,6 +77,8 @@ cache:
|
||||||
- 'C:\Users\appveyor\.pkg-cache\ -> package.json'
|
- 'C:\Users\appveyor\.pkg-cache\ -> package.json'
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
tag: $(APPVEYOR_REPO_TAG_NAME)
|
||||||
|
release: $(RELEASE_NAME)
|
||||||
provider: GitHub
|
provider: GitHub
|
||||||
auth_token: $(GH_TOKEN)
|
auth_token: $(GH_TOKEN)
|
||||||
artifact: /.*/
|
artifact: /.*/
|
||||||
|
|
Loading…
Reference in New Issue