Skip to content

Commit

Permalink
Changed to ignore streams not creating nupkg files
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Nov 2, 2017
1 parent 1d8f933 commit 1b9a9a2
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 1b9a9a2

Please sign in to comment.