@@ -59,17 +59,11 @@ jobs:
5959 # uses: NuGet/setup-nuget@296fd3ccf8528660c91106efefe2364482f86d6f
6060 uses : NuGet/setup-nuget@v2.0.0
6161
62- - name : Update Visual Studio Extension version
62+ - name : Update Visual Studio Extension version (vs2026)
6363 uses : cezarypiatek/VsixVersionAction@1.2
6464 with :
6565 version : ${{ env.Version }}
66- vsix-manifest-file : ' Manifests\vs2022\source.extension.vsixmanifest'
67-
68- - name : Update assembly version
69- run : |
70- (Get-Content -Path CodeDocumentor\Settings\VsixOptions.cs) |
71- ForEach-Object {$_ -Replace '${{ env.BaseVersion }}', '${{ env.Version }}'} |
72- Set-Content -Path CodeDocumentor\Settings\VsixOptions.cs
66+ vsix-manifest-file : ' CodeDocumentor2026\source.extension.vsixmanifest'
7367
7468 - name : Restore dependencies
7569 run : nuget restore CodeDocumentor.sln
@@ -81,28 +75,28 @@ jobs:
8175 run : vstest.console.exe CodeDocumentor.Test\bin\Release\net48\CodeDocumentor.Test.dll
8276
8377 - uses : actions/upload-artifact@v4.3.1
84- name : " Pack"
78+ name : " Pack vs2026 "
8579 with :
86- name : " CodeDocumentor .vsix"
87- path : CodeDocumentor \bin\Release\CodeDocumentor .vsix
88-
89- # This is not enabled because it needs a publish manifest which is the form when you upload a VSIX
90- # deploy:
91- # # Publish only when creating a GitHub Release
92- # # https://docs. github.com/en/repositories/releasing-projects-on- github/managing-releases-in-a-repository
93- # # You can update this logic if you want to manage releases differently
94- # if: github.event_name == 'release' || github.event.inputs.is_release == true
95- # runs-on: [windows-latest]
96- # needs: [ build ]
97- # steps:
98- # # Download the NuGet package created in the previous job
99- # - uses: actions/download-artifact@v4.1.2
100- # with:
101- # name: "CodeDocumentor.vsix"
102-
103- # - name: Publish extension to Marketplace
104- # uses: cezarypiatek/VsixPublisherAction@1.1
105- # with:
106- # extension-file: 'CodeDocumentor .vsix'
107- # publish-manifest-file: 'CodeDocumentor\CodeDocumentor.vsix\manifest .json'
108- # personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}
80+ name : " CodeDocumentor2026 .vsix"
81+ path : CodeDocumentor2026 \bin\Release\CodeDocumentor2026 .vsix
82+
83+ deploy :
84+ # Publish only when creating a GitHub Release
85+ # https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
86+ if : github.event_name == 'release' || github.event.inputs.is_release == true
87+ runs-on : [windows-latest]
88+ needs : [ build ]
89+ steps :
90+ - uses : actions/checkout@v4.1.1
91+
92+ - uses : actions/download-artifact@v4.1.2
93+ with :
94+ name : " CodeDocumentor2026.vsix "
95+ path : ' . '
96+
97+ - name : Publish extension to Marketplace
98+ uses : cezarypiatek/VsixPublisherAction@1.1
99+ with :
100+ extension-file : ' CodeDocumentor2026 .vsix'
101+ publish-manifest-file : ' CodeDocumentor2026\publishManifest .json'
102+ personal-access-code : ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}
0 commit comments