Skip to content

Tags in the vsixmanifest can be at most 50 characters #14

Tags in the vsixmanifest can be at most 50 characters

Tags in the vsixmanifest can be at most 50 characters #14

name: Publish to the Visual Studio Marketplace
on:
push:
tags:
- v*
jobs:
publish:
name: Publish to the Visual Studio Marketplace
runs-on: windows-latest
steps:
- name: Checkout
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
- name: Set Version
id: set-version
shell: pwsh
run: |
$version = $Env:GITHUB_REF_NAME.Trim().TrimStart("v")
Write-Output "Target Version: $version"
"version=$version" >> $Env:GITHUB_OUTPUT
- name: Build VSIX
uses: ./.github/actions/build-vsix
with:
version-number: ${{ steps.set-version.outputs.version }}
- name: Publish to Marketplace
# v1.0
uses: cezarypiatek/VsixPublisherAction@9c6b58b5955df9901a6e9834be1d0a94cd54aeba
with:
extension-file: artifacts\Lombiq.Vsix.Orchard.vsix
publish-manifest-file: Marketplace\publishManifest.json
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}
- name: Create Release
# v1.11.2
uses: ncipollo/release-action@18eadf9c9b0f226f47f164f5373c6a44f0aae169
with:
allowUpdates: true
generateReleaseNotes: true
artifacts: artifacts/Lombiq.Vsix.Orchard.vsix