|
7 | 7 | branches: [main] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - publish-extension: |
| 10 | + publish-to-open-vsx: |
11 | 11 | runs-on: ubuntu-latest |
12 | 12 | if: ${{ github.event.workflow_run.conclusion == 'success' }} |
13 | 13 | environment: production |
@@ -47,14 +47,37 @@ jobs: |
47 | 47 | with: |
48 | 48 | pat: ${{ secrets.OPEN_VSX_TOKEN }} |
49 | 49 | packagePath: packages/cursorless-vscode/dist |
50 | | - skipDuplicate: true |
| 50 | + |
| 51 | + - name: Upload VSIX |
| 52 | + uses: actions/upload-artifact@v4 |
| 53 | + with: |
| 54 | + name: vscode-extension |
| 55 | + path: ${{ steps.publishToOpenVSX.outputs.vsixPath }} |
| 56 | + retention-days: 1 |
| 57 | + |
| 58 | + publish-to-vs-marketplace: |
| 59 | + runs-on: ubuntu-latest |
| 60 | + needs: publish-to-open-vsx |
| 61 | + environment: production |
| 62 | + |
| 63 | + steps: |
| 64 | + - name: Download VSIX |
| 65 | + uses: actions/download-artifact@v4 |
| 66 | + with: |
| 67 | + name: vscode-extension |
| 68 | + |
| 69 | + - name: Get VSIX file path |
| 70 | + id: getPath |
| 71 | + run: | |
| 72 | + VSIX_FILE=$(find . -maxdepth 1 -name "*.vsix" -type f) |
| 73 | + echo "vsixPath=$VSIX_FILE" >> $GITHUB_OUTPUT |
51 | 74 |
|
52 | 75 | - name: Publish to Visual Studio Marketplace |
53 | 76 | uses: HaaLeo/publish-vscode-extension@v2 |
54 | 77 | with: |
55 | 78 | pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} |
56 | 79 | registryUrl: https://marketplace.visualstudio.com |
57 | | - extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} |
| 80 | + extensionFile: ${{ steps.getPath.outputs.vsixPath }} |
58 | 81 |
|
59 | 82 | publish-neovim-extension: |
60 | 83 | runs-on: ubuntu-latest |
@@ -116,7 +139,7 @@ jobs: |
116 | 139 | push-cursorless-talon: |
117 | 140 | name: Push cursorless-talon subrepo |
118 | 141 | runs-on: ubuntu-latest |
119 | | - needs: publish-extension |
| 142 | + needs: [publish-to-vs-marketplace, publish-neovim-extension] |
120 | 143 | environment: production |
121 | 144 |
|
122 | 145 | steps: |
|
0 commit comments