Skip to content

Commit 6609c65

Browse files
committed
Generate NuGet Packages And Add Them As Artifacts
1 parent 647304b commit 6609c65

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

appveyor.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ build:
2828
include_nuget_references: false
2929
verbosity: minimal
3030

31+
after_build:
32+
- ps: |
33+
$semver = ${env:APPVEYOR_BUILD_VERSION} -ireplace '(\d+.\d+.\d+).(\d+)', "`$1-ci`$2-${env:APPVEYOR_REPO_BRANCH}"
34+
$semver = $semver.Substring(0, [System.Math]::Min(20, $semver.Length))
35+
nuget pack RabbitMQ.Client.nuspec -version $semver -symbols
36+
nuget pack RabbitMQ.ServiceModel.nuspec -version $semver -symbols
37+
3138
install:
3239
- ps: |
3340
$regPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RabbitMQ"
@@ -46,4 +53,7 @@ test:
4653
except:
4754
- RequireSMP
4855

56+
artifacts:
57+
- path: '**\*.nupkg'
58+
4959
deploy: off

0 commit comments

Comments
 (0)