Skip to content

Commit 50e2448

Browse files
committed
X
1 parent 1782053 commit 50e2448

File tree

2 files changed

+36
-14
lines changed

2 files changed

+36
-14
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,15 @@ jobs:
128128
- run: (Get-Content source.extension.vsixmanifest) -replace 'Version="1.0.0"', 'Version="${{ needs.common.outputs.version3 }}"' | Set-Content source.extension.vsixmanifest
129129
- run: dotnet restore
130130
- uses: microsoft/setup-msbuild@v1.1
131-
- run: msbuild /p:Version=${{ needs.common.outputs.version }}
131+
- run: msbuild /p:Version=${{ needs.common.outputs.version }},DeployExtension=false
132132
- uses: actions/upload-artifact@v3
133133
with:
134134
name: vs_extension
135135
path: src/VisualStudio/bin/Release/net472/*.vsix
136+
- uses: actions/upload-artifact@v3
137+
with:
138+
name: vs_extension
139+
path: src/VisualStudio/manifest.json
136140

137141
build_vs_code_extension:
138142
if: github.ref_type != 'tag' || startsWith(github.ref_name, 'v')
@@ -175,7 +179,7 @@ jobs:
175179
with:
176180
name: vs_code_extension
177181
path: src/VisualStudioCode/package/*.vsix
178-
- run: rm *.vsix
182+
- run: rm package/*.vsix
179183
- run: sed -i s/ms-dotnettools.csharp/muhammad-sammy.csharp/ package/package.json
180184
- run: vsce package
181185
working-directory: src/VisualStudioCode/package
@@ -240,8 +244,6 @@ jobs:
240244
with:
241245
name: nuget
242246
path: nuget
243-
- run: ls -R
244-
working-directory: nuget
245247
# - run: dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json"
246248
# working-directory: nuget
247249

@@ -254,12 +256,8 @@ jobs:
254256
with:
255257
name: vs_code_extension
256258
path: vs_code_extension
257-
- run: ls -R
258-
working-directory: vs_code_extension
259259
- run: npm install -g @vscode/vsce
260-
- run: vsce
261-
- run: echo Releasing VS Code extension ...
262-
# - run: vsce publish -p ${{ secrets.VSCODE_PERSONAL_ACCESS_TOKEN }}
260+
# - run: vsce publish -p ${{ secrets.VS_CODE_TOKEN }}
263261
# working-directory: vs_code_extension
264262

265263
release_ovsx_extension:
@@ -271,10 +269,21 @@ jobs:
271269
with:
272270
name: ovsx_extension
273271
path: ovsx_extension
274-
- run: ls -R
275-
working-directory: ovsx_extension
276272
- run: npm install -g ovsx
277-
- run: ovsx
278-
- run: echo Releasing VS Code extension ...
279-
# - run: ovsx publish -p ${{ secrets.OVSX_PERSONAL_ACCESS_TOKEN }}
273+
# - run: ovsx publish -p ${{ secrets.OVSX_TOKEN }}
280274
# working-directory: ovsx_extension
275+
276+
release_vs_extension:
277+
needs: build_vs_extension
278+
runs-on: windows-latest
279+
# if: github.ref_type == 'tag'
280+
steps:
281+
- uses: actions/download-artifact@v3
282+
with:
283+
name: vs_extension
284+
path: vs_extension
285+
# - run: |
286+
# $visualStudioPath = vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VSSDK -property installationPath
287+
# $vsixPublisher = Join-Path "$visualStudioPath" "VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe"
288+
# & "$vsixPublisher" publish -payload Roslynator.VisualStudio.vsix -publishManifest manifest.json -personalAccessToken ${{ secrets.VISUAL_STUDIO_TOKEN }}
289+
# working-directory: vs_extension

src/VisualStudio/manifest.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsix-publish",
3+
"categories": [ "coding", "other" ],
4+
"identity": {
5+
"internalName": "Roslynator2022"
6+
},
7+
"overview": "Overview.md",
8+
"priceCategory": "free",
9+
"publisher": "josefpihrt",
10+
"private": false,
11+
"qna": true,
12+
"repo": "https://github.com/JosefPihrt/Roslynator"
13+
}

0 commit comments

Comments
 (0)