Skip to content

Commit 5b30d17

Browse files
committed
Added publish workflow.
1 parent 4247a1c commit 5b30d17

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup .NET Core
16+
uses: actions/setup-dotnet@v4
17+
with:
18+
dotnet-version: 8.0
19+
20+
- name: Install dependencies
21+
run: dotnet restore
22+
23+
- name: Build
24+
run: dotnet pack
25+
26+
- name: Publish
27+
run: dotnet nuget push $(find . -name "*.nupkg") --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)