Skip to content

Commit

Permalink
Merge pull request majkinetor#108 from AdmiringWorm/bugfix/gitrelease…
Browse files Browse the repository at this point in the history
…s-creates-release-on-all-streams

Changed to ignore streams not creating nupkg files in GitReleases
  • Loading branch information
majkinetor authored Nov 2, 2017
2 parents 1d8f933 + 1b9a9a2 commit 972cc01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AU/Plugins/GitReleases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ $uploadHeaders = $headers.Clone()
$uploadHeaders['Content-Type'] = 'application/zip'

$packagesToRelease | % {
# Because we grab all streams previously, we need to ignore
# cases when a stream haven't been updated (no nupkg file created)
if (!$_.NuFile) { return }

if ($releaseType -eq 'package') {
$releaseName = $releaseHeader -replace '<PackageName>', $_.Name -replace '<RemoteVersion>', $_.RemoteVersion -replace '<NuspecVersion>', $_.NuspecVersion -replace '<date>', $date
if ($_.NuspecVersion) {
Expand Down

0 comments on commit 972cc01

Please sign in to comment.