Skip to content

Commit f0ded45

Browse files
committed
Add NuGet publish workflow
1 parent 7c4bfd0 commit f0ded45

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/nuget.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish to NuGet
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-dotnet@v4
15+
with:
16+
dotnet-version: '8.0.x'
17+
18+
- run: dotnet restore PS3Sharp/PS3Sharp.csproj
19+
20+
- run: dotnet pack PS3Sharp/PS3Sharp.csproj -c Release -o ./nupkg
21+
22+
- run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)