Skip to content

Commit a205749

Browse files
committed
Merge branch 'develop'
2 parents ac4190e + cc3bc45 commit a205749

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.appveyor.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ branches:
1919
- dev
2020

2121
clone_depth: 1
22+
2223
init:
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"
@@ -33,9 +34,16 @@ init:
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
4048
environment:
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

116126
deploy:
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

0 commit comments

Comments
 (0)