Skip to content

.NET

.NET #36

Workflow file for this run

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