Skip to content

Commit 48cb4e6

Browse files
authored
Create publish.yml
1 parent 0db94b6 commit 48cb4e6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: Publish to NuGet.org
5+
6+
on:
7+
workflow_dispatch: # ↩️ manual trigger only
8+
9+
jobs:
10+
build-win:
11+
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: 8.0.x
20+
- name: Build
21+
run: ./build.ps1
22+
shell: pwsh
23+
- name: Publish
24+
run: dotnet nuget push artifacts\nupkgs\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
25+
shell: pwsh

0 commit comments

Comments
 (0)