mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-24 21:41:33 +01:00
deploy with tag and release name
This commit is contained in:
parent
7a161fa028
commit
0a680bd963
@ -17,6 +17,10 @@ init:
|
|||||||
$env:DIST_DIR = "${env:APPVEYOR_BUILD_FOLDER}\dist\"
|
$env:DIST_DIR = "${env:APPVEYOR_BUILD_FOLDER}\dist\"
|
||||||
$env:DIST_SRC_DIR = "${env:DIST_DIR}Source\"
|
$env:DIST_SRC_DIR = "${env:DIST_DIR}Source\"
|
||||||
$env:REPO_URL = "https://github.com/${env:APPVEYOR_REPO_NAME}.git"
|
$env:REPO_URL = "https://github.com/${env:APPVEYOR_REPO_NAME}.git"
|
||||||
|
if($env:APPVEYOR_REPO_TAG -eq "true") {
|
||||||
|
$tagName = $env:APPVEYOR_REPO_TAG_NAME.TrimStart("v")
|
||||||
|
$env:RELEASE_NAME = "Version ${tagName}"
|
||||||
|
}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cmd: npm install -g gulp
|
- cmd: npm install -g gulp
|
||||||
@ -62,6 +66,8 @@ artifacts:
|
|||||||
- path: coverage/coverage-%APPVEYOR_BUILD_NUMBER%.zip
|
- path: coverage/coverage-%APPVEYOR_BUILD_NUMBER%.zip
|
||||||
|
|
||||||
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
Block a user