-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (26 loc) · 1.01 KB
/
publish-manually.yml
File metadata and controls
32 lines (26 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish Extension Manually
on:
workflow_dispatch:
inputs:
version:
description: "Tag to publish"
required: true
jobs:
publish:
runs-on: windows-2022
env:
Configuration: Release
DeployExtension: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.version }}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Publish
run: msbuild source/ProjectFilter/ProjectFilter.csproj /t:PublishToMarketplace /Restore /v:Minimal /p:BuildBeforePublish=true /p:PersonalAccessToken=${{ secrets.PUBLISHER_TOKEN }}
env:
# This workflow should be used when the `VsixPublisher` from the `Microsoft.VSSDK.BuildTools`
# package fails, so we'll use the `VsixPublisher` that is installed with Visual Studio.
VsixPublisher: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VSSDK\\VisualStudioIntegration\\Tools\\Bin\\VsixPublisher.exe"