Add open-vsx deployment #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build and deploy the vscode extension to the marketplace when a tag is pushed | |
# to main branch | |
on: | |
push: | |
tags: | |
- 'v[0-9]*' | |
name: Deploy Extension | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./.github/internals/setup-js | |
- run: yarn build | |
- name: Publish to Open VSX Registry | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
packagePath: ./inst/vscode-extension/ | |
yarn: true | |
pat: ${{ secrets.VSX_TOKEN }} | |
skipDuplicate: true | |
dryRun: ${{ github.ref_name == 'main' }} | |
- name: Publish to Visual Studio Marketplace | |
uses: HaaLeo/publish-vscode-extension@v1 | |
with: | |
packagePath: ./inst/vscode-extension/ | |
yarn: true | |
pat: ${{ secrets.VSCE_PAT }} | |
registryUrl: https://marketplace.visualstudio.com | |
dryRun: ${{ github.ref_name == 'main' }} |