-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (29 loc) · 961 Bytes
/
build.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
33
name: Build Master
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
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: Build with dotnet
run: dotnet build --configuration Release
working-directory: ./src
- name: Test with dotnet
run: dotnet test
working-directory: ./src
- name: Create the SimpleEndPoints package
if: github.ref == 'refs/heads/master'
run: dotnet pack --configuration Release SimpleEndPoints
working-directory: ./src
- name: Publish the SimpleEndpoints package to NUGET.ORG
if: github.ref == 'refs/heads/master'
run: dotnet nuget push SimpleEndPoints/bin/Release/*.nupkg -k ${{secrets.NUGET_APIKEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ./src