-
Notifications
You must be signed in to change notification settings - Fork 6
29 lines (26 loc) · 903 Bytes
/
publishToNuget.yml
File metadata and controls
29 lines (26 loc) · 903 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
# This is a basic workflow to help you get started with Actions
name: Publish package
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Create package
run: dotnet pack --output Package
- name: Publish package
run: dotnet nuget push Package\**\*.nupkg -s https://api.nuget.org/v3/index.json --no-symbols true --skip-duplicate -k ${{secrets.NUGET_AUTH_TOKEN}}