File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed
Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,10 @@ branches:
1919 - dev
2020
2121clone_depth : 1
22+
2223init :
23- - ps : >-
24- if ($env:APPVEYOR_REPO_TAG_NAME) {
24+ - ps : |
25+ if ($env:APPVEYOR_REPO_TAG_NAME) {
2526 $headers = @{
2627 "Authorization" = "Bearer $env:GITHUB_TOKEN"
2728 "Content-type" = "application/json"
3334 } else {
3435 $env:isPrerelease = "false"
3536 }
36- echo ("isPrerelease: " + $env:isPrerelease)
37- echo ("description: " + $env:releaseDescription)
38- }
37+
38+ }
39+
40+ - ps : |
41+ If ($Env:APPVEYOR_REPO_TAG_NAME -match "-"){
42+ Set-AppveyorBuildVariable -Name "IsPreRelease" -Value True
43+ }
44+ Else{
45+ Set-AppveyorBuildVariable -Name "IsPreRelease" -Value False
46+ }
3947
4048environment :
4149 global :
@@ -104,6 +112,8 @@ artifacts:
104112# Store NuGet packages
105113- path : .\Artifacts\**\*.nupkg
106114 name : NuGet
115+ - path : .\Artifacts\**\*.zip
116+ name : Zip
107117# Store xUnit Test Results
108118- path : .\Artifacts\**\*.trx
109119 name : xUnit Test Results
@@ -115,12 +125,15 @@ artifacts:
115125
116126deploy :
117127- provider : GitHub
128+ release : ' Release $(APPVEYOR_REPO_TAG_NAME) build $(APPVEYOR_BUILD_VERSION)'
129+ tag : $(APPVEYOR_REPO_TAG_NAME)
130+ description : ' [**CHANGE LOG**](https://github.com/courio-dev/$(APPVEYOR_REPO_TAG_NAME)/blob/master/HISTORY.md)'
131+ prerelease : $(IsPreRelease)
132+ artifact : Zip, NuGet
118133 auth_token : $(GITHUB_TOKEN)
119134 artifact : /.*\.nupkg/
120135 draft : true
121136 force_update : true
122- prerelease : true
123- description : " e"
124137 on :
125138 appveyor_repo_tag : false
126139 # Deploying to MyGet feed
You can’t perform that action at this time.
0 commit comments