Skip to content

Commit

Permalink
🚀 Fix publish step refs
Browse files Browse the repository at this point in the history
  • Loading branch information
vexx32 committed Mar 16, 2020
1 parent 7470d6f commit a1573ea
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ stages:

variables:
GalleryDeploymentPath: '$(System.DefaultWorkingDirectory)/build/PSGallery'
ModuleDownloadPath: '$(Build.ArtifactStagingDirectory)/PSWordCloud'

strategy:
runOnce:
Expand All @@ -217,14 +218,14 @@ stages:
displayName: 'Download Built Module Artifact'
inputs:
artifact: '$(ModuleArtifactName)'
path: '$(BuiltModulePath)'
path: '$(ModuleDownloadPath)'

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

inputs:
targetType: 'filePath'
arguments: -Key $(PSApiKey) -Path '$(GalleryDeploymentPath)' -ModulePath $(BuiltModulePath)
arguments: -Key $(PSApiKey) -Path '$(GalleryDeploymentPath)' -ModulePath $(ModuleDownloadPath)
filePath: './build/Publish-Module.ps1'

errorActionPreference: 'stop'
Expand Down Expand Up @@ -255,13 +256,13 @@ stages:
- task: DownloadPipelineArtifact@2
inputs:
itemPattern: $(NupkgArtifactName)
targetPath: '$(Build.ArtifactStagingDirectory)'
targetPath: $(PackageDownloadPath)

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

0 comments on commit a1573ea

Please sign in to comment.