try to fix bug where version is not passed and publish args is wrong

This commit is contained in:
Noah Gilson 2024-10-10 13:12:02 -07:00
Родитель 1cc6c40b1c
Коммит 592349be71
2 изменённых файлов: 8 добавлений и 8 удалений

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

@ -77,10 +77,10 @@ jobs:
Contents: '**\*.binlog'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: false
- ${{ if eq(parameters.useOneEngineeringPool, 'true') }}:
- template: publish.yaml
parameters:
pool: ${{ parameters.pool }}
SignType: ${{ parameters.SignType }}
version: $(GetVersion.version)
useOneEngineeringPool: true
- ${{ if eq(parameters.useOneEngineeringPool, 'true') }}:
- template: publish.yaml
parameters:
pool: ${{ parameters.pool }}
SignType: ${{ parameters.SignType }}
version: $(GetVersion.version)
useOneEngineeringPool: true

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

@ -45,7 +45,7 @@ jobs:
$basePublishArgs = , "publish"
$basePublishArgs += '--azure-credential'
$basePublishArgs += '--packagePath'
$publishArgs = $basePublishArgs + vscode-dotnet-runtime-$(version)-signed.vsix
$publishArgs = $basePublishArgs + 'vscode-dotnet-runtime-$(version)-signed.vsix'
If ("${{ parameters.SignType }}" -ne "Real") {
Write-Host "With a test-signed build, the command to publish is printed instead of run."
Write-Host "##[command]vsce $publishArgs"