Skip to content

Commit 00d91d2

Browse files
authored
Create publish.yml
1 parent 3e89d7b commit 00d91d2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish package
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v*.*.*'
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup .NET Core
16+
uses: actions/setup-dotnet@v3.0.1
17+
with:
18+
dotnet-version: '6.0.x'
19+
- name: Install dependencies
20+
run: dotnet restore
21+
- name: Build
22+
run: dotnet build --configuration Release --no-restore
23+
- name: Publish the package
24+
run: dotnet nuget push "*/bin/Release/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)