Files
Sam Byass d9df2cbcc1 [publish] Bump deps, fix compilation warnings, update TFMs bump to 3.1.0
TFM changes should not be a breaking change - no support should be dropped.
2026-02-15 18:30:36 +00:00

32 lines
1.1 KiB
YAML

name: .NET - Build
on:
push:
branches: [ master ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 10.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/[email protected]
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