Skip to content

Commit

Permalink
🚀 Fix CI tooling for publishing to gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
vexx32 committed Oct 30, 2019
1 parent 6634df7 commit 22eb24a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Deploy/FileSystem/PSKoans.psdeploy.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Deploy Module {
By PSGalleryModule {
FromSource "$PSScriptRoot/PSKoans"
FromSource "$PSScriptRoot/../PSKoans"
To FileSystem
WithOptions @{
ApiKey = 'FileSystem'
Expand Down
2 changes: 1 addition & 1 deletion Deploy/PSGallery/PSKoans.psdeploy.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Deploy Module {
By PSGalleryModule {
FromSource "$PSScriptRoot/PSKoans"
FromSource "$PSScriptRoot/../PSKoans"
To PSGallery
WithOptions @{
ApiKey = $ENV:NugetApiKey
Expand Down
4 changes: 2 additions & 2 deletions Deploy/Publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if ($OutputDirectory) {
}
Register-PSRepository @Params

Import-Module "$PSScriptRoot/FileSystem/PSKoans"
Import-Module "$PSScriptRoot/PSKoans"
$Module = Get-Module -Name PSKoans
$Dependencies = @(
$Module.RequiredModules.Name
Expand All @@ -33,7 +33,7 @@ if ($OutputDirectory) {
}
}

$HelpFile = Get-ChildItem -Path $Path -File -Recurse -Filter '*-help.xml'
$HelpFile = Get-ChildItem -Path "$PSScriptRoot/PSKoans" -File -Recurse -Filter '*-help.xml'

if ($HelpFile.Directory -notmatch 'en-us|\w{1,2}-\w{1,2}') {
$PSCmdlet.WriteError(
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
displayName: 'Download Built Module Artifact'
inputs:
artifact: PSKoans
path: '$(System.DefaultWorkingDirectory)/Deploy/FileSystem/PSKoans'
path: '$(System.DefaultWorkingDirectory)/Deploy/PSKoans'

- task: PowerShell@2
displayName: 'Deploy to FileSystem'
Expand Down

0 comments on commit 22eb24a

Please sign in to comment.