File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -345,6 +345,10 @@ function New-DraftRelease {
345
345
[ValidateSet ([RepoNames ])]
346
346
[string ]$RepositoryName
347
347
)
348
+ param (
349
+ [Parameter (ValueFromPipeline )]
350
+ [string []]$Assets
351
+ )
348
352
$Version = Get-Version - RepositoryName $RepositoryName
349
353
$Changelog = (Get-FirstChangelog - RepositoryName $RepositoryName ) -join " `n "
350
354
$ReleaseParams = @ {
@@ -368,6 +372,8 @@ function New-DraftRelease {
368
372
Pop-Location
369
373
}
370
374
371
- Get-GitHubRepository - OwnerName PowerShell - RepositoryName $RepositoryName |
372
- New-GitHubRelease @ReleaseParams
375
+ $Repo = Get-GitHubRepository - OwnerName PowerShell - RepositoryName $RepositoryName
376
+ $Release = $Repo | New-GitHubRelease @ReleaseParams
377
+
378
+ $Assets | ForEach-Object { $Release | New-GitHubReleaseAsset - Path $_ }
373
379
}
You can’t perform that action at this time.
0 commit comments