Skip to content

Commit a1573ea

Browse files
committed
🚀 Fix publish step refs
1 parent 7470d6f commit a1573ea

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ stages:
204204

205205
variables:
206206
GalleryDeploymentPath: '$(System.DefaultWorkingDirectory)/build/PSGallery'
207+
ModuleDownloadPath: '$(Build.ArtifactStagingDirectory)/PSWordCloud'
207208

208209
strategy:
209210
runOnce:
@@ -217,14 +218,14 @@ stages:
217218
displayName: 'Download Built Module Artifact'
218219
inputs:
219220
artifact: '$(ModuleArtifactName)'
220-
path: '$(BuiltModulePath)'
221+
path: '$(ModuleDownloadPath)'
221222

222223
- task: PowerShell@2
223224
displayName: 'Publish Module to PSGallery'
224225

225226
inputs:
226227
targetType: 'filePath'
227-
arguments: -Key $(PSApiKey) -Path '$(GalleryDeploymentPath)' -ModulePath $(BuiltModulePath)
228+
arguments: -Key $(PSApiKey) -Path '$(GalleryDeploymentPath)' -ModulePath $(ModuleDownloadPath)
228229
filePath: './build/Publish-Module.ps1'
229230

230231
errorActionPreference: 'stop'
@@ -255,13 +256,13 @@ stages:
255256
- task: DownloadPipelineArtifact@2
256257
inputs:
257258
itemPattern: $(NupkgArtifactName)
258-
targetPath: '$(Build.ArtifactStagingDirectory)'
259+
targetPath: $(PackageDownloadPath)
259260

260261
- task: GitHubRelease@0
261262
inputs:
262263
gitHubConnection: github.com_vexx32
263-
repositoryName: '$(Build.Repository.Name)'
264+
repositoryName: $(Build.Repository.Name)
264265
action: 'edit' # Options: create, edit, delete
265-
tag: '$(TagName)' # Required when action == Edit || Action == Delete || TagSource == Manual
266-
assets: '$(Build.ArtifactStagingDirectory)/**' # Optional
266+
tag: $(TagName) # Required when action == Edit || Action == Delete || TagSource == Manual
267+
assets: '$(PackageDownloadPath)/**' # Optional
267268
assetUploadMode: 'replace' # Optional. Options: delete, replace

0 commit comments

Comments
 (0)