-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (42 loc) · 1.55 KB
/
release-vswin.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
37
38
39
40
41
42
43
44
name: Release VS Windows Debugger Preview
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Install nbgv
run: dotnet tool install nbgv --tool-path ./tools
- name: Run nbgv
run: echo "NUGET_PACKAGE_VERSION=$(./tools/nbgv get-version -v NuGetPackageVersion)" >> $GITHUB_ENV
- name: Install dependencies
run: dotnet restore
- name: publish Neo N3 debug adapter
run: dotnet publish ./src/adapter3/neodebug-3-adapter.csproj --output ./src/vs-package/adapter/ --runtime win-x64 --no-self-contained
- uses: ilammy/msvc-dev-cmd@v1
- name: Install dependencies
run: nuget restore ./src/vs-package/neodebug-vs.csproj
- name: build vsix
run: msbuild ./src/vs-package/neodebug-vs.csproj /p:BaseOutputPath=bin\ /p:Configuration=Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: packages
path: ./src/vs-package/bin/x64/Release/*.vsix
- name: Create Release
uses: marvinpinto/[email protected]
if: ${{ startsWith(github.ref_name, 'release/') }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
title: Neo Debugger for Visual Studio Preview Release ${{ env.NUGET_PACKAGE_VERSION }}
automatic_release_tag: vswin-latest
files: |
./src/vs-package/bin/x64/Release/*.vsix