@@ -246,13 +246,24 @@ jobs:
246246 - run : npm ci
247247 working-directory : ./editors/code
248248
249- - name : Publish Extension (release)
249+ - name : Publish Extension (Code Marketplace, release)
250250 if : github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
251251 working-directory : ./editors/code
252252 # token from https://dev.azure.com/rust-analyzer/
253253 run : npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
254254
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)
256262 if : github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
257263 working-directory : ./editors/code
258264 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