@@ -246,13 +246,24 @@ jobs:
246
246
- run : npm ci
247
247
working-directory : ./editors/code
248
248
249
- - name : Publish Extension (release)
249
+ - name : Publish Extension (Code Marketplace, release)
250
250
if : github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
251
251
working-directory : ./editors/code
252
252
# token from https://dev.azure.com/rust-analyzer/
253
253
run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
254
254
255
- - name : Publish Extension (nightly)
255
+ - name : Publish Extension (OpenVSX, release)
256
+ if : github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
257
+ working-directory : ./editors/code
258
+ # token from https://dev.azure.com/rust-analyzer/
259
+ run : npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
260
+
261
+ - name : Publish Extension (Code Marketplace, nightly)
256
262
if : github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
257
263
working-directory : ./editors/code
258
264
run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release
265
+
266
+ - name : Publish Extension (OpenVSX, nightly)
267
+ if : github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
268
+ working-directory : ./editors/code
269
+ run : npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release
0 commit comments