-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 877 Bytes
/
Copy pathpublish.yml
File metadata and controls
30 lines (30 loc) · 877 Bytes
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
name: publish to nuget
on:
push:
branches:
- release # Default release branch
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Pack
run: dotnet pack DeribitClient
- name: Publish
id: publish_nuget
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: DeribitClient/DeribitClient.csproj
PACKAGE_NAME: DeribitClient
VERSION_FILE_PATH: DeribitClient/DeribitClient.csproj
VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
NUGET_KEY: ${{secrets.NUGET_SECRET_KEY}}