-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (35 loc) · 1013 Bytes
/
managedshell.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
45
46
name: ManagedShell
on:
push:
branches: [ master ]
paths-ignore: [ '.github/**' ]
pull_request:
branches: [ master ]
paths-ignore: [ '.github/**' ]
jobs:
build:
strategy:
matrix:
buildconfig: [ Release ]
runs-on: windows-latest
env:
project: src\ManagedShell\ManagedShell.csproj
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install nbgv
uses: dotnet/[email protected]
- name: Build
run: dotnet build $env:project -c $env:config --disable-parallel
env:
config: ${{ matrix.buildconfig }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ManagedShell nupkg
path: '**\*.nupkg'
- name: Publish to NuGet
if: matrix.buildconfig == 'Release' && github.event_name == 'push'
run: dotnet nuget push **\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate