Skip to content

Deploy

Deploy #6

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: [Test, Test meta]
types: [completed]
branches: [master]
jobs:
publish-extension:
name: Publish to marketplace
runs-on: ubuntu-latest
environment: Production
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm --color install
- name: Publish to Open VSX Registry
id: publishToOpenVSX
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPENVSX_PAT }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_PAT }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}