Skip to content

Commit c98e2fa

Browse files
authored
Merge pull request #25 from alerickson/updateYaml
2 parents 51bfbe7 + f079bf5 commit c98e2fa

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.ci/releaseBuild.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,16 @@ stages:
106106
Write-Host "local repo is: " + $vstsCommandString
107107
Write-Host "##$vstsCommandString"
108108
109-
Register-PSRepository -Name local -SourceLocation $(localRepo)
109+
Register-PSRepository -Name local -SourceLocation $localRepo
110110
Publish-Module -Path $(signOutPath) -Repository local
111111
displayName: Publish module to local repository
112112
113+
# finally publish the parts of the build which will be used in the next stages
114+
# if it's not published, the subsequent stages will not be able to access it.
115+
- publish: "$(signOutPath)"
116+
artifact: build
117+
displayName: publish build directory
118+
113119
- pwsh: |
114120
$nupkgPath = "$(localRepo)"
115121
$artifactName = "CompatPowerShellGet"
@@ -129,8 +135,6 @@ stages:
129135
steps:
130136
- checkout: self
131137
- checkout: ComplianceRepo
132-
- download: current
133-
artifact: build
134138

135139
# use the templates in the compliance repo
136140
# no assemblies, you should use script-module-compliance template
@@ -147,7 +151,6 @@ stages:
147151
# selections
148152
APIScan: false # set to false when not using Windows APIs.
149153

150-
stages:
151154
- stage: Publish
152155
displayName: Publish
153156
dependsOn: Compliance

0 commit comments

Comments
 (0)