forked from Astn/JSON-RPC.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 900 Bytes
/
build_publish_master.yml
File metadata and controls
33 lines (29 loc) · 900 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
31
32
33
name: Build Master
on:
push:
paths-ignore:
- "**/*.md"
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest']
dotnet-version: ['3.1.201']
project : ['Json-Rpc']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{matrix.dotnet-version}}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build ${{matrix.project}} --configuration Release
- name: Test
run: dotnet test AustinHarris.JsonRpcTestN
# Publish
- name: publish nuget version change
run: dotnet nuget push Json-Rpc/bin/Release/*.nupkg --skip-duplicate --source "https://www.nuget.org" --api-key ${{secrets.NugetKey}} # API key for the NuGet feed