File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,5 @@ use the same code which includes dependencies).
140
140
* ` Update-Changelog ` could be faster by not downloading _ every_ PR
141
141
* ` Update-Changelog ` should use exactly two emoji and in the right order
142
142
* ` Update-Version ` could be run by ` Update-Changelog `
143
- * ` New-DraftRelease ` could automatically set the tag pointers and upload the binaries
144
143
* The build should emit an appropriately named VSIX instead of us manually renaming it
145
144
* A ` Publish-Binaries ` function could be written to push the binaries out
Original file line number Diff line number Diff line change @@ -342,7 +342,10 @@ function New-DraftRelease {
342
342
param (
343
343
[Parameter (Mandatory )]
344
344
[ValidateSet ([RepoNames ])]
345
- [string ]$RepositoryName
345
+ [string ]$RepositoryName ,
346
+
347
+ [Parameter (ValueFromPipeline )]
348
+ [string []]$Assets
346
349
)
347
350
$Version = Get-Version - RepositoryName $RepositoryName
348
351
$Changelog = (Get-FirstChangelog - RepositoryName $RepositoryName ) -join " `n "
@@ -354,8 +357,10 @@ function New-DraftRelease {
354
357
Name = " v$Version "
355
358
Body = $ChangeLog
356
359
PreRelease = [bool ]$Version.PreReleaseLabel
360
+ OwnerName = " PowerShell"
361
+ RepositoryName = $RepositoryName
357
362
}
358
363
359
- Get-GitHubRepository - OwnerName PowerShell - RepositoryName $RepositoryName |
360
- New-GitHubRelease @ReleaseParams
364
+ $Release = New-GitHubRelease @ReleaseParams
365
+ $Assets | New-GitHubReleaseAsset - Release $Release .Id
361
366
}
You can’t perform that action at this time.
0 commit comments