File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "cSpell.words" : [
3+ " jjones" ,
4+ " repo" ,
5+ " visualstudio"
6+ ]
7+ }
Original file line number Diff line number Diff line change 1+ # IMPORTANT: Set variable `marketplace.token` to PAT for accessing the Visual
2+ # Studio Marketplace.
3+
14trigger :
25 batch : true
36 branches :
4447 tag : ' v$(vsix.version)'
4548 title : ' Version $(vsix.version)'
4649 assets : ' $(vsix)'
50+
51+ - task : PowerShell@2
52+ inputs :
53+ filePath : ' $(Build.SourcesDirectory)\scripts\PublishVsix.ps1'
54+ env :
55+ MARKETPLACE_TOKEN : $(marketplace.token)
Original file line number Diff line number Diff line change 1- [xml ]$vsix = Get-Content $PSScriptRoot \..\src\GtmExtension\source.extension.vsixmanifest
1+ [xml ]$vsix = Get-Content " $PSScriptRoot \..\src\GtmExtension\source.extension.vsixmanifest"
22$version = $vsix.PackageManifest.Metadata.Identity.Version
33Write-Host " ##vso[task.setvariable variable=vsix.version]$version "
Original file line number Diff line number Diff line change 1+ $VisualStudio = & " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Installer\vswhere.exe" - latest - prerelease - format json | ConvertFrom-Json
2+ $VsixPublisher = Join-Path - Path $VisualStudio.installationPath - ChildPath " VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe" - Resolve
3+ & $VsixPublisher publish - payload $env: vsix - publishManifest " $PSScriptRoot \vsix-publish.json" - personalAccessToken $env: MARKETPLACE_TOKEN
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " http://json.schemastore.org/vsix-publish" ,
3+ "categories" : [
4+ " Coding" ,
5+ " Reporting" ,
6+ " Team Development"
7+ ],
8+ "identity" : {
9+ "internalName" : " gtm.visualstudio.plugin" ,
10+ "tags" : [
11+ " gtm"
12+ ],
13+ "language" : " en-US"
14+ },
15+ "overview" : " README.md" ,
16+ "priceCategory" : " free" ,
17+ "publisher" : " jjones" ,
18+ "private" : false ,
19+ "qna" : true ,
20+ "repo" : " https://github.com/jjonescz/gtm-visualstudio-plugin"
21+ }
You can’t perform that action at this time.
0 commit comments