Skip to content

Commit 1782053

Browse files
committed
update
1 parent 965f781 commit 1782053

File tree

1 file changed

+53
-4
lines changed

1 file changed

+53
-4
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
- run: msbuild /p:Version=${{ needs.common.outputs.version }}
132132
- uses: actions/upload-artifact@v3
133133
with:
134-
name: vsix
134+
name: vs_extension
135135
path: src/VisualStudio/bin/Release/net472/*.vsix
136136

137137
build_vs_code_extension:
@@ -173,14 +173,15 @@ jobs:
173173
working-directory: src/VisualStudioCode/package
174174
- uses: actions/upload-artifact@v3
175175
with:
176-
name: vsix
176+
name: vs_code_extension
177177
path: src/VisualStudioCode/package/*.vsix
178+
- run: rm *.vsix
178179
- run: sed -i s/ms-dotnettools.csharp/muhammad-sammy.csharp/ package/package.json
179-
- run: vsce package -o roslynator-${{ needs.common.outputs.version3 }}-ovsx.vsix
180+
- run: vsce package
180181
working-directory: src/VisualStudioCode/package
181182
- uses: actions/upload-artifact@v3
182183
with:
183-
name: vsix
184+
name: ovsx_extension
184185
path: src/VisualStudioCode/package/*.vsix
185186

186187
build_core_cli:
@@ -229,3 +230,51 @@ jobs:
229230
with:
230231
name: nuget
231232
path: src/CommandLine/bin/Release/*.nupkg
233+
234+
release_nuget_packages:
235+
needs: [ build_core_and_testing, build_analyzers, build_core_cli, build_framework_cli ]
236+
runs-on: ubuntu-20.04
237+
# if: github.ref_type == 'tag'
238+
steps:
239+
- uses: actions/download-artifact@v3
240+
with:
241+
name: nuget
242+
path: nuget
243+
- run: ls -R
244+
working-directory: nuget
245+
# - run: dotnet nuget push "*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s "https://api.nuget.org/v3/index.json"
246+
# working-directory: nuget
247+
248+
release_vs_code_extension:
249+
needs: build_vs_code_extension
250+
runs-on: ubuntu-20.04
251+
# if: github.ref_type == 'tag'
252+
steps:
253+
- uses: actions/download-artifact@v3
254+
with:
255+
name: vs_code_extension
256+
path: vs_code_extension
257+
- run: ls -R
258+
working-directory: vs_code_extension
259+
- 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 }}
263+
# working-directory: vs_code_extension
264+
265+
release_ovsx_extension:
266+
needs: build_vs_code_extension
267+
runs-on: ubuntu-20.04
268+
# if: github.ref_type == 'tag'
269+
steps:
270+
- uses: actions/download-artifact@v3
271+
with:
272+
name: ovsx_extension
273+
path: ovsx_extension
274+
- run: ls -R
275+
working-directory: ovsx_extension
276+
- 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 }}
280+
# working-directory: ovsx_extension

0 commit comments

Comments
 (0)