Skip to content

Commit

Permalink
[skip ci] corrected GitHub release segment of the deploy task
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed May 14, 2020
1 parent 24f4c33 commit 4e72345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invoke.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ task PublishToPSGallery -If $psGalleryConditions {

task PublishToGitHub -If $gitHubConditions {
Write-BuildLog "Creating Release ZIP..."
$commitId = git rev-parse --verify HEAD
$ReleaseNotes = . .\ci\GitHubReleaseNotes.ps1
$zipPath = [System.IO.Path]::Combine($BuildRoot,"$($ModuleName).zip")
if (Test-Path $zipPath) {
Remove-Item $zipPath -Force
Expand All @@ -260,15 +262,13 @@ task PublishToGitHub -If $gitHubConditions {
[System.IO.Compression.ZipFile]::CreateFromDirectory($TargetModuleDirectory,$zipPath)
Write-BuildLog "Publishing Release v$($NextModuleVersion) @ commit Id [$($commitId)] to GitHub..."

$commitId = git rev-parse --verify HEAD
$ReleaseNotes = . .\ci\GitHubReleaseNotes.ps1

$gitHubParams = @{
VersionNumber = $NextModuleVersion.ToString()
CommitId = $commitId
ReleaseNotes = $ReleaseNotes
ArtifactPath = $zipPath
GitHubUsername = 'scrthq'
GitHubUsername = 'SCRT-HQ'
GitHubRepository = $ModuleName
GitHubApiKey = $env:GitHubPAT
Draft = $false
Expand Down

0 comments on commit 4e72345

Please sign in to comment.