From 0a680bd963dc9353e6f1fe3a4a91330c34fdf127 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 20 Mar 2019 23:14:02 -0400 Subject: [PATCH] deploy with tag and release name --- appveyor.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index a1a9d41d3a..f5bfd4cb70 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,6 +17,10 @@ init: $env:DIST_DIR = "${env:APPVEYOR_BUILD_FOLDER}\dist\" $env:DIST_SRC_DIR = "${env:DIST_DIR}Source\" $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: - cmd: npm install -g gulp @@ -62,6 +66,8 @@ artifacts: - path: coverage/coverage-%APPVEYOR_BUILD_NUMBER%.zip deploy: + tag: $(APPVEYOR_REPO_TAG_NAME) + release: $(RELEASE_NAME) provider: GitHub auth_token: $(GH_TOKEN) artifact: /.*/