-
Notifications
You must be signed in to change notification settings - Fork 87
35 lines (30 loc) · 1.02 KB
/
build_pull_request.yml
File metadata and controls
35 lines (30 loc) · 1.02 KB
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
34
35
name: Pull Reqest
on:
pull_request:
paths-ignore:
- "**/*.md"
branches: [ master ]
jobs:
build:
strategy:
matrix:
os: ['windows-latest','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 --version-suffix ci-${{ github.run_id }}-${{ github.run_number }}
- name: Test
run: dotnet test AustinHarris.JsonRpcTestN
# Publish
- name: publish nuget version change
if: ${{matrix.os == 'ubuntu-latest'}}
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