mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
created script for publishing a github release that is currently in draft mode
This commit is contained in:
25
Tools/publish_draft_github_release.ps1
Normal file
25
Tools/publish_draft_github_release.ps1
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
param (
|
||||||
|
[string]
|
||||||
|
[Parameter(Mandatory=$true)]
|
||||||
|
#
|
||||||
|
$Owner,
|
||||||
|
|
||||||
|
[string]
|
||||||
|
[Parameter(Mandatory=$true)]
|
||||||
|
#
|
||||||
|
$Repository,
|
||||||
|
|
||||||
|
[string]
|
||||||
|
[Parameter(Mandatory=$true)]
|
||||||
|
#
|
||||||
|
$ReleaseId,
|
||||||
|
|
||||||
|
[string]
|
||||||
|
[Parameter(Mandatory=$true)]
|
||||||
|
# The OAuth2 token to use for authentication.
|
||||||
|
$AuthToken
|
||||||
|
)
|
||||||
|
|
||||||
|
. "$PSScriptRoot\github_functions.ps1"
|
||||||
|
|
||||||
|
Edit-GitHubRelease -Owner $Owner -Repository $Repository -ReleaseId $ReleaseId -AuthToken $AuthToken -IsDraft $false
|
||||||
Reference in New Issue
Block a user