-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (29 loc) · 1.06 KB
/
default.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
name: .NET - Build
on:
push:
branches: [ master ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x
- name: Install dependencies
run: dotnet restore
- name: Tests
run: dotnet test
- name: Build
run: dotnet build -c Release
- name: Upload NuGet Artifact
uses: actions/upload-artifact@v2
with:
name: Fmod5Sharp.nupkg
path: Fmod5Sharp/bin/Release/*.nupkg
- name: Upload to NuGet
if: contains(github.event.head_commit.message, '[publish]') == true
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push ./Fmod5Sharp/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY