-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1000 Bytes
/
dotnet-build.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
name: .NET build
on:
push:
branches: [ master, vsix-bloat ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
submodules: true
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
vs-version: '[17.0,18.0)'
- name: Add package source
run: dotnet nuget add source https://nuget.pkg.github.com/DarkDaskin/index.json -n github -u DarkDaskin -p ${{ secrets.GITHUB_TOKEN }}
- name: Restore packages
run: msbuild /t:Restore
- name: Build
run: msbuild /p:Configuration=Release
- name: Upload NuGet artifacts
uses: actions/upload-artifact@v3
with:
name: nupkg
path: |
**/*.nupkg
- name: Upload VSIX artifacts
uses: actions/upload-artifact@v3
with:
name: vsix
path: |
**/*.vsix