Skip to content

main_vsix_release

main_vsix_release #7

name: main_vsix_release
on:
workflow_dispatch:
env:
SOLUTION_PATH: source/Diol/Diol.sln
VSIX_PROJECT_PATH: source/Diol/src/applications/DiolVSIX/DiolVSIX.csproj
VSIX_OUTPUT_PATH: distr/diol
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Restore NuGet packages
run: msbuild /t:restore ${{ env.SOLUTION_PATH }}
- name: Build
run: msbuild /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=${{ github.workspace }}/${{ env.VSIX_OUTPUT_PATH }} ${{ env.VSIX_PROJECT_PATH }}
- name: Publish extension to Marketplace
uses: cezarypiatek/VsixPublisherAction@1.1
with:
extension-file: ${{ github.workspace }}/${{ env.VSIX_OUTPUT_PATH }}/DiolVSIX.vsix
publish-manifest-file: ${{ github.workspace }}/${{ env.VSIX_OUTPUT_PATH }}/publishManifest.json
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}