Skip to content

Commit 11f2f79

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent c5a73ac commit 11f2f79

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

azure-pipelines.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
SourceFolder: '$(Build.SourcesDirectory)'
3939
Contents: |
4040
README.md
41+
publish.extension.manifest.json
4142
**/SqlQueryTools.vsix
4243
TargetFolder: '$(Build.StagingDirectory)/Artifact'
4344
CleanTargetFolder: true
@@ -138,16 +139,27 @@ jobs:
138139
$vsixPath = Resolve-Path $(Build.StagingDirectory)\Artifact\
139140
Get-ChildItem $vsixPath
140141
141-
- task: GitHubRelease@1
142-
displayName: 'Publish new release to GitHub'
142+
# - task: GitHubRelease@1
143+
# displayName: 'Publish new release to GitHub'
144+
# inputs:
145+
# gitHubConnection: 'github release connection'
146+
# repositoryName: 'gmarginet/SqlQueryTools'
147+
# action: 'create'
148+
# target: '$(Build.SourceVersion)'
149+
# tagSource: 'userSpecifiedTag'
150+
# tag: 'v$(currentVsixVersion)'
151+
# assets: '$(Build.StagingDirectory)/Artifact/SqlQueryTools.vsix'
152+
# changeLogCompareToRelease: 'lastFullRelease'
153+
# changeLogType: 'issueBased'
154+
# changeLogLabels:
155+
156+
- task: PowerShell@2
157+
displayName: 'Publish new release to Marketplace'
143158
inputs:
144-
gitHubConnection: 'github release connection'
145-
repositoryName: 'gmarginet/SqlQueryTools'
146-
action: 'create'
147-
target: '$(Build.SourceVersion)'
148-
tagSource: 'userSpecifiedTag'
149-
tag: 'v$(currentVsixVersion)'
150-
assets: '$(Build.StagingDirectory)/Artifact/SqlQueryTools.vsix'
151-
changeLogCompareToRelease: 'lastFullRelease'
152-
changeLogType: 'issueBased'
153-
changeLogLabels:
159+
targetType: 'inline'
160+
script: |
161+
$personalAccessToken = ${env:PAT_MARKETPLACE}
162+
$vsixPath = Resolve-Path $(Build.StagingDirectory)\Artifact\SqlQueryTools.vsix
163+
echo "visix path = $vsixPath"
164+
$publishManifestPath = Resolve-Path $(Build.StagingDirectory)\Artifact\publish.extension.manifest.json
165+
echo "publish manifest path = $publishManifestPath"

0 commit comments

Comments
 (0)