Skip to content

Update yaml for broken release pipeline #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 14, 2023
11 changes: 7 additions & 4 deletions .ci/releaseBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -147,7 +151,6 @@ stages:
# selections
APIScan: false # set to false when not using Windows APIs.

stages:
- stage: Publish
displayName: Publish
dependsOn: Compliance
Expand Down