Skip to content

Commit

Permalink
Added missing variables !deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jun 6, 2017
1 parent 71eaf24 commit e02af35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Build/deploy.psdeploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ if(
$env:BHCommitMessage -match '!deploy'
)
{
'PSGallery'
Deploy Module {
By PSGalleryModule {
FromSource $ENV:BHModulePath
Expand All @@ -36,7 +35,8 @@ if(
}
}

'GitHub release'
$GitHubUser = 'nicholasdille'
$GitHubRepository = 'PowerShell-Statistics'
$NoDraft = $true
$Release = $true
$RequestBody = @{
Expand All @@ -47,7 +47,8 @@ if(
"draft" = -Not $NoDraft
"prerelease" = -Not $Release
} | ConvertTo-Json
$Result = Invoke-WebRequest -Method Post -Uri "https://api.github.com/repos/$Owner/$Repository/releases" -Headers @{Authorization = "token $ENV:GitHubToken"} -Body $RequestBody
$Result = Invoke-WebRequest -Method Post -Uri "https://api.github.com/repos/$GitHubUser/$GitHubRepository/releases" -Headers @{Authorization = "token $ENV:GitHubToken"} -Body $RequestBody
$Result
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.1.59
# 1.1.60

- Improved check for data via parameter or pipeline
- Added automatic creation of GitHub release
Expand Down

0 comments on commit e02af35

Please sign in to comment.