Skip to content

Commit

Permalink
Exclude deploy and fix PR
Browse files Browse the repository at this point in the history
  • Loading branch information
muratiakos committed Jan 5, 2018
1 parent 02aa645 commit 166c662
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Deploy/PSGallery.PSDeploy.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Publish to gallery with a few restrictions
if ($env:BHBuildSystem -ine 'Unknown' -and $env:BHBranchName -eq "master") {
if ($env:BHBuildSystem -ine 'Unknown' -and $env:BHBranchName -eq "master" -and $ENV:PsGalleryApiKey) {
Deploy Module {
By PSGalleryModule {
FromSource $Env:BHPSModulePath
Expand Down
2 changes: 1 addition & 1 deletion psakefile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Task Init {
"Prepare module output"
Remove-Item -Path $Env:BHBuildOutput -Recurse -Force -ErrorAction SilentlyContinue
New-Item -Path $Env:BHPSModulePath -Force -ItemType Directory
Copy-Item -Path ./* -Destination $Env:BHPSModulePath -Recurse -Exclude @('BuildOutput','appveyor.yml','build.ps1','psakefile.ps1')
Copy-Item -Path ./* -Destination $Env:BHPSModulePath -Recurse -Exclude @('BuildOutput','Deploy','appveyor.yml','build.ps1','psakefile.ps1')

"Build System"
Get-Item ENV:BH*
Expand Down

0 comments on commit 166c662

Please sign in to comment.