Skip to content

Commit 4590834

Browse files
authored
Create publish-package.yml
1 parent ddbfd82 commit 4590834

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish-Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v2
16+
with:
17+
dotnet-version: |
18+
3.1.x
19+
5.0.x
20+
6.0.x
21+
- name: Test
22+
run: ./build.cmd Test --configuration Release --root .
23+
- name: pack
24+
run: ./build.cmd Pack --configuration Release --root .
25+
- name: Publish
26+
run: ./build.cmd Publish --root .
27+
env:
28+
NuGetApiKey: ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)