Skip to content

Commit 7f61fb1

Browse files
committed
Use MrKWatkins/nuget-publish.
1 parent da76bc3 commit 7f61fb1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/release.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,11 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v4
2727

28-
- name: Setup .NET
29-
uses: actions/setup-dotnet@v4
30-
with:
31-
dotnet-version: 9.0.x
32-
33-
- name: Create Package
34-
run: dotnet pack ./src/ /p:Version=${{ inputs.version }} -p:SymbolPackageFormat=snupkg --configuration Release --include-symbols --output ./packages/
35-
3628
- name: Publish to NuGet
37-
run: dotnet nuget push ./packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
38-
39-
- name: Create Release
40-
run: gh release create v${{ inputs.version }} --generate-notes
29+
uses: MrKWatkins/nuget-publish@main
30+
with:
31+
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
32+
version: ${{ inputs.version }}
4133

4234
- name: Deploy Documentation
4335
uses: MrKWatkins/writerside-build@main

0 commit comments

Comments
 (0)