Skip to content

CalvinAllen/action-vs-marketplace-publish

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

calvinallen/action-vs-marketplace-publish

Github Action to publish your Visual Studio extension to the marketplace

Usage

You can use the VS Marketplace Publish GitHub Action by configuring a YAML-based workflow file, e.g. .github/workflows/deploy.yml.

This action only works on a Windows-based runner

Publish a local VSIX File

steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Visual Studio Marketplace Publisher
      uses: CalvinAllen/action-vs-marketplace-publish@v1
      with:
        # REQUIRED
        marketplace-pat: ${{ secrets.vs_pat }}
        publish-manifest-path: ./src/vsixManifest.json
        vsix-path: ./src/outputFolder/Extension.vsix

        # OPTIONAL
        vs-version: latest
        vs-prerelease: false

Inputs

Input Required Description
marketplace-pat Y Your 'Personal Access Token' to perform actions on the Visual Studio Marketplace
publish-manifest-path Y Path to the manifest used for the publish
vsix-path Y Path to the local VSIX package you wish to publish
vs-version N Specify the exact version of Visual Studio tooling to use; default to latest
vs-prerelease N Allow a pre-release installation of Visual Studio tooling; default to false