-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1.17 KB
/
vsix.yml
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
33
34
35
36
name: VSIX
on:
push:
branches:
- main
jobs:
build:
name: VSIX
runs-on: windows-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v4
- name: MSBuild
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Increment VSIX version
id: vsix_version
uses: timheuer/vsix-version-stamp@v2
with:
manifest-file: EncodingConverter.VisualStudio\source.extension.vsixmanifest
- name: Cache NuGet
uses: actions/cache@v4
with:
path: ${{ github.workspace }}\.nuget\packages
key: ${{ runner.os }}-nuget-${{ hashFiles('Directory.Packages.props') }} #hash of project files
restore-keys: ${{ runner.os }}-nuget-
- name: Build
run: msbuild EncodingConverter.VisualStudio\EncodingConverter.VisualStudio.csproj -r -p:Configuration=Release -p:DeployExtension=false
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}.vsix
path: EncodingConverter.VisualStudio/bin/Release/*.vsix