Skip to content

Add NuGet publish workflow #1

Add NuGet publish workflow

Add NuGet publish workflow #1

Workflow file for this run

name: Publish to NuGet
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- run: dotnet restore PS3Sharp/PS3Sharp.csproj
- run: dotnet pack PS3Sharp/PS3Sharp.csproj -c Release -o ./nupkg
- run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate