Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

[Docs] Example Publish to Marketplace #4

@AlexHedley

Description

@AlexHedley

Is it worth adding a WIKI with steps to do things?

If you upload a release then publish it:

name: Publish

on:
  release:
    types:
      - released

jobs:
  main:
    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v2
      
      - name: Download Assets
        uses: i3h/[email protected]
        with:
          owner: ${{ github.event.repository.owner.login }}
          repo: ${{ github.event.repository.name }}
          tag: ${{ github.event.release.tag_name }}
          file: EXTNAME.vsix
          token: ${{ secrets.GITHUB_TOKEN }}

      - name: Script
        run: |
          # Find VsixPublisher
          $Installation = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format json | ConvertFrom-Json
          $Path = $Installation.installationPath
          Write-Host $Path
          $VsixPublisher = Join-Path -Path $Path -ChildPath "VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe" -Resolve
          & $VsixPublisher publish -payload ".\ EXTNAME.vsix" -publishManifest ".\build\extension-manifest.json" -personalAccessToken $env:PersonalAccessToken -ignoreWarnings "VSIXValidatorWarning01,VSIXValidatorWarning02,VSIXValidatorWarning08"
        env:
          PersonalAccessToken: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions