diff options
Diffstat (limited to '.github/workflows/cd.yml')
| -rw-r--r-- | .github/workflows/cd.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 96e9a8d..01c207e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -25,7 +25,7 @@ jobs: - run: yarn - name: Install VSCE - run: yarn add vsce -D + run: yarn add vsce ovsx -D - name: Update $PATH run: echo "$PWD/node_modules/.bin/" >> $GITHUB_PATH @@ -33,12 +33,18 @@ jobs: - name: Build vsix run: vsce package && ls -alh - - name: Deploy to Marketplace + - name: Publish to VS Code Marketplace run: vsce publish -p ${VSCE_TOKEN} env: VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} if: contains(github.ref, 'refs/tags/') + - name: Publish to Open VSX Registry + run: ovsx publish + env: + OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }} + if: contains(github.ref, 'refs/tags/') + - name: Upload vsix to GitHub release uses: svenstaro/upload-release-action@v2 with: |