diff --git a/.ci/releaseBuild.yml b/.ci/releaseBuild.yml index 49941fc..91c3abf 100644 --- a/.ci/releaseBuild.yml +++ b/.ci/releaseBuild.yml @@ -106,10 +106,16 @@ stages: Write-Host "local repo is: " + $vstsCommandString Write-Host "##$vstsCommandString" - Register-PSRepository -Name local -SourceLocation $(localRepo) + Register-PSRepository -Name local -SourceLocation $localRepo Publish-Module -Path $(signOutPath) -Repository local displayName: Publish module to local repository + # finally publish the parts of the build which will be used in the next stages + # if it's not published, the subsequent stages will not be able to access it. + - publish: "$(signOutPath)" + artifact: build + displayName: publish build directory + - pwsh: | $nupkgPath = "$(localRepo)" $artifactName = "CompatPowerShellGet" @@ -129,8 +135,6 @@ stages: steps: - checkout: self - checkout: ComplianceRepo - - download: current - artifact: build # use the templates in the compliance repo # no assemblies, you should use script-module-compliance template @@ -147,7 +151,6 @@ stages: # selections APIScan: false # set to false when not using Windows APIs. -stages: - stage: Publish displayName: Publish dependsOn: Compliance