6
6
#
7
7
# Note: If build is unstable, a beta (pre release) version of the nuget will be pushed
8
8
# If build is stable, a stable (release) version will be pushed
9
-
10
9
# branch must be master to create a nuget
11
10
$configuration = " Release"
12
11
$nuspecExtension = " .nuspec"
@@ -19,6 +18,8 @@ $apikey = $env:NugetOrgApiKey
19
18
# pull_request --> CI build triggered when opening a PR (do nothing here)
20
19
$buildType = $env: TRAVIS_EVENT_TYPE
21
20
21
+ Write-Host (" ********************* Begin Create NUget script **************************************" )
22
+
22
23
# create and push nuget off of master branch ONLY
23
24
if (($branch -ne $masterString ) -and ($buildType -ne " debug" ))
24
25
{
@@ -231,6 +232,7 @@ function UpdateDependencyVersions([string]$Nuspec, [string]$CsProj)
231
232
}
232
233
233
234
# Make the nuget.exe update itself (We must be at least at nuget 5.0 for this all to work) **************
235
+ Write-Host " Update nuget.exe"
234
236
& $nuget update - self
235
237
236
238
# Update the dependency versions in the nuspec files ****************************************************
@@ -254,6 +256,7 @@ UpdateDependencyVersions $ReactiveDomainUITestingNuspec $RDUITestingProject
254
256
# *******************************************************************************************************
255
257
256
258
# Pack the nuspec files to create the .nupkg files using the set versionString *************************
259
+ Write-Host " Packing reactivedomain nuget packages"
257
260
$versionString = $RDVersion
258
261
& $nuget pack $ReactiveDomainNuspec - Version $versionString
259
262
& $nuget pack $ReactiveDomainTestingNuspec - Version $versionString
@@ -263,6 +266,7 @@ $versionString = $RDVersion
263
266
# *******************************************************************************************************************************
264
267
265
268
# Push the nuget packages to nuget.org ******************************************************************************************
269
+ Write-Host " Push nuget packages to nuget.org"
266
270
$ReactiveDomainNupkg = $PSScriptRoot + " \..\ReactiveDomain." + $versionString + " .nupkg"
267
271
$ReactiveDomainTestingNupkg = $PSScriptRoot + " \..\ReactiveDomain.Testing." + $versionString + " .nupkg"
268
272
$ReactiveDomainUINupkg = $PSScriptRoot + " \..\ReactiveDomain.UI." + $versionString + " .nupkg"
0 commit comments