Skip to content

Commit

Permalink
try corrected destinationPath
Browse files Browse the repository at this point in the history
  • Loading branch information
gcampbell-msft committed Jul 30, 2024
1 parent d191663 commit 182e609
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions jobs/release/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ extends:
- input: pipelineArtifact
pipeline: BuildPrereleasePipeline
artifactName: vsix
destnationPath: $(Build.StagingDirectory)\vsix

steps:
- powershell: |
$newVersion = Get-Content -Path build\vsix\version.txt
$newVersion = Get-Content -Path $(Build.StagingDirectory)\vsix\version.txt
Write-Host "New version is: $newVersion"
$str = Get-Date -Format "yyMMdd-HHmm"
Expand All @@ -61,7 +62,7 @@ extends:
$aadToken = az account get-access-token --query accessToken --resource $(AzureGuid) -o tsv
Write-Host "##vso[task.setvariable variable=AAD_TOKEN;issecret=true]$aadToken"
- script: |
vsce publish --packagePath build\vsix\cmake-tools.vsix --pre-release
vsce publish --packagePath $(Build.StagingDirectory)\vsix\cmake-tools.vsix --pre-release
displayName: 'Publish the VSIX'
env:
VSCE_PAT: $(AAD_TOKEN)
Expand Down
5 changes: 3 additions & 2 deletions jobs/release/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ extends:
- input: pipelineArtifact
pipeline: BuildReleasePipeline
artifactName: vsix
destnationPath: $(Build.StagingDirectory)\vsix

steps:
- powershell: |
$newVersion = Get-Content -Path build\vsix\version.txt
$newVersion = Get-Content -Path $(Build.StagingDirectory)\vsix\version.txt
Write-Host "New version is: $newVersion"
$str = Get-Date -Format "yyMMdd-HHmm"
Expand Down Expand Up @@ -68,7 +69,7 @@ extends:
$aadToken = az account get-access-token --query accessToken --resource $(AzureGuid) -o tsv
Write-Host "##vso[task.setvariable variable=AAD_TOKEN;issecret=true]$aadToken"
- script: |
vsce publish --packagePath build\vsix\cmake-tools.vsix
vsce publish --packagePath $(Build.StagingDirectory)\vsix\cmake-tools.vsix
displayName: 'Publish the VSIX'
env:
VSCE_PAT: $(AAD_TOKEN)
Expand Down

0 comments on commit 182e609

Please sign in to comment.