Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish to VS Marketplace

env:
config: Release
solution: vs-extension.sln
vsixContainer: ${{ github.workspace }}\vs-extension.vsix

on:
push:
branches:
- master

jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- uses: nuget/setup-nuget@v1
with:
nuget-version: "5.x"

- name: Add VSTest to PATH
uses: darenm/Setup-VSTest@v1

- name: NuGet restore ${{ env.solution }}
run: nuget restore ${{ env.solution }}

- name: MSBuild ${{ env.solution }}
run: |
msbuild ${{ env.solution }} /p:Configuration=${{ env.config }} /p:TargetVsixContainer=${{ env.vsixContainer }} /p:DeployExtension=False /verbosity:minimal

- name: Publish release to marketplace
id: publish
uses: mrluje/vs-marketplace-publisher@v2
with:
# (Required) Personal access token to perform action on the VS Marketplace
pat: ${{ secrets.vs_pat }}

# (Required) Path to the manifest used for the publish
manifestPath: vs-extension/vsixManifest.json

# (Optional) Path to an extension package
vsixPath: ${{ env.vsixContainer }}