fix pipelines for release
This commit is contained in:
Родитель
12aee0230d
Коммит
621bb9b464
|
@ -30,13 +30,14 @@ extends:
|
|||
type: releaseJob
|
||||
isProduction: true
|
||||
inputs:
|
||||
- input: artifactsDrop
|
||||
- input: pipelineArtifact
|
||||
pipeline: BuildPrereleasePipeline
|
||||
artifactName: vsix
|
||||
targetPath: $(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"
|
||||
|
@ -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\makefile-tools.vsix --pre-release
|
||||
vsce publish --packagePath $(Build.StagingDirectory)\vsix\makefile-tools.vsix --pre-release
|
||||
displayName: "Publish the VSIX"
|
||||
env:
|
||||
VSCE_PAT: $(AAD_TOKEN)
|
||||
|
|
|
@ -30,13 +30,14 @@ extends:
|
|||
type: releaseJob
|
||||
isProduction: true
|
||||
inputs:
|
||||
- input: artifactsDrop
|
||||
- input: pipelineArtifact
|
||||
pipeline: BuildReleasePipeline
|
||||
artifactName: vsix
|
||||
targetPath: $(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"
|
||||
|
@ -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\makefile-tools.vsix
|
||||
vsce publish --packagePath $(Build.StagingDirectory)\vsix\makefile-tools.vsix
|
||||
displayName: "Publish the VSIX"
|
||||
env:
|
||||
VSCE_PAT: $(AAD_TOKEN)
|
||||
|
|
Загрузка…
Ссылка в новой задаче