Skip to content

Commit 2c28380

Browse files
authored
adding support for nuget autorelease (#10)
1 parent d1ee808 commit 2c28380

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/nuget-release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Nuget Release
2+
3+
on:
4+
release:
5+
types: [ publihsed]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up .NET Core
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: '6.0.x'
16+
- name: Build
17+
run: dotnet pack --configure Release --output .
18+
19+
- name: Publish
20+
uses: rohitch/publish-nuget@v2
21+
with:
22+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
23+
PROJECT_FILE_PATH: src/NRedisStack.Core/NRedisStack.Core.csproj

0 commit comments

Comments
 (0)