Try to publish the universal VSIX before the other ones

This commit is contained in:
Laurențiu Nicola 2022-05-23 18:04:43 +03:00
parent 84be2eaf99
commit abc541e496

View file

@ -248,9 +248,9 @@ jobs:
if: github.ref == 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
working-directory: ./editors/code
# token from https://dev.azure.com/rust-analyzer/
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-no-server.vsix ../../dist/rust-analyzer-alpine-x64.vsix ../../dist/rust-analyzer-darwin-arm64.vsix ../../dist/rust-analyzer-darwin-x64.vsix ../../dist/rust-analyzer-linux-arm64.vsix ../../dist/rust-analyzer-linux-x64.vsix ../../dist/rust-analyzer-win32-arm64.vsix ../../dist/rust-analyzer-win32-x64.vsix
- name: Publish Extension (nightly)
if: github.ref != 'refs/heads/release' && (github.repository == 'rust-analyzer/rust-analyzer' || github.repository == 'rust-lang/rust-analyzer')
working-directory: ./editors/code
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer-*.vsix --pre-release
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --pre-release --packagePath ../../dist/rust-analyzer-no-server.vsix ../../dist/rust-analyzer-alpine-x64.vsix ../../dist/rust-analyzer-darwin-arm64.vsix ../../dist/rust-analyzer-darwin-x64.vsix ../../dist/rust-analyzer-linux-arm64.vsix ../../dist/rust-analyzer-linux-x64.vsix ../../dist/rust-analyzer-win32-arm64.vsix ../../dist/rust-analyzer-win32-x64.vsix