This commit is contained in:
Garrett Campbell 2024-07-31 10:00:48 -04:00
Родитель 12aee0230d
Коммит 621bb9b464
2 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -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)