-
Notifications
You must be signed in to change notification settings - Fork 12
32 lines (28 loc) · 1.09 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release to Nuget
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Create NuGet Package
run: dotnet pack ./kx.csproj -c Release /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/KxSystems/csharpkdb/releases/tag/${{ github.event.release.tag_name }}"
working-directory: ./kx
- name: Archive NuGet Package
uses: actions/upload-artifact@v1
with:
name: KxSystems.csharpkdb
path: ./kx/bin/Release/CSharpKDB.${{ github.event.release.tag_name }}.nupkg
- name: Archive NuGet Package
uses: actions/upload-artifact@v1
with:
name: KxSystems.csharpkdb
path: ./kx/bin/Release/CSharpKDB.${{ github.event.release.tag_name }}.nupkg
- name: Publish Nuget Package
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json --no-symbols true