Skip to content

Commit afe7900

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent e181161 commit afe7900

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -145,29 +145,28 @@ jobs:
145145
$vsixPath = Resolve-Path $(Build.StagingDirectory)\Artifact\
146146
Get-ChildItem $vsixPath
147147
148-
# - task: GitHubRelease@1
149-
# displayName: 'Publish new release to GitHub'
150-
# inputs:
151-
# gitHubConnection: 'github release connection'
152-
# repositoryName: 'gmarginet/SqlQueryTools'
153-
# action: 'create'
154-
# target: '$(Build.SourceVersion)'
155-
# tagSource: 'userSpecifiedTag'
156-
# tag: 'v$(currentVsixVersion)'
157-
# assets: '$(Build.StagingDirectory)/Artifact/SqlQueryTools.vsix'
158-
# changeLogCompareToRelease: 'lastFullRelease'
159-
# changeLogType: 'issueBased'
160-
# changeLogLabels:
148+
- task: GitHubRelease@1
149+
displayName: 'Publish new release to GitHub'
150+
inputs:
151+
gitHubConnection: 'github release connection'
152+
repositoryName: 'gmarginet/SqlQueryTools'
153+
action: 'create'
154+
target: '$(Build.SourceVersion)'
155+
tagSource: 'userSpecifiedTag'
156+
tag: 'v$(currentVsixVersion)'
157+
assets: '$(Build.StagingDirectory)/Artifact/SqlQueryTools.vsix'
158+
changeLogCompareToRelease: 'lastFullRelease'
159+
changeLogType: 'issueBased'
160+
changeLogLabels:
161161

162162
- task: PowerShell@2
163163
displayName: 'Publish new release to Marketplace'
164164
inputs:
165165
targetType: 'inline'
166166
script: |
167-
$personalAccessToken = ${env:PAT_MARKETPLACE}
168-
$vsixPath = Resolve-Path $(Build.StagingDirectory)\Artifact\SqlQueryTools.vsix
167+
$pat = ${env:PAT_MARKETPLACE}
168+
$payloadPath = Resolve-Path $(Build.StagingDirectory)\Artifact\SqlQueryTools.vsix
169169
$publishManifestPath = Resolve-Path $(Build.StagingDirectory)\Artifact\publish.extension.manifest.json
170-
# Find the location of VsixPublisher
171170
$Installation = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -format json | ConvertFrom-Json
172171
$vsixPublisher = Join-Path -Path $Installation.installationPath -ChildPath "VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe" -Resolve
173-
echo "vsix publisher path = $vsixPublisher"
172+
& $vsixPublisher publish -payload $payloadPath -publishManifest $publishManifestPath -personalAccessToken $pat -ignoreWarnings "VSIXValidatorWarning01,VSIXValidatorWarning02,VSIXValidatorWarning08"

0 commit comments

Comments
 (0)