Skip to content

Update Box2dNet.csproj #16

Update Box2dNet.csproj

Update Box2dNet.csproj #16

Workflow file for this run

name: Publish NuGet package
on:
push:
tags:
- 'v*' # Trigger on version tags like v1.2.3
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Pack
run: dotnet pack ./Box2dNet/Box2dNet.csproj --configuration Release --output ./nupkg
- name: Publish to NuGet
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json