-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (29 loc) · 915 Bytes
/
dotnet.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
name: .NET
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Build
run: dotnet build ./CoreAudio/CoreAudio.csproj
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Set version in project file
uses: roryprimrose/set-vs-sdk-project-version@v1
with:
version: 1.${{ github.run_number }}.0
- name: Publish NuGet
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: ./CoreAudio/CoreAudio.csproj
VERSION_STATIC: 1.${{ github.run_number }}.0
TAG_COMMIT: true
NUGET_KEY: ${{ secrets.NUGET_KEY }}
INCLUDE_SYMBOLS: false