-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (39 loc) · 1.03 KB
/
master.yml
File metadata and controls
39 lines (39 loc) · 1.03 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
36
37
38
39
name: Master workflow
on:
push:
branches:
- master
- "release/**"
- "releases/**"
tags:
- v*
- V*
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
MSBUILDSINGLELOADCONTEXT: 1
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: dotnet restore
- name: Build solution
run: dotnet build -c Release --no-restore
- name: Run tests
run: dotnet test -c Release --no-build --verbosity normal
- name: Create NuGet packages
run: dotnet pack -c Release --no-build -o nupkg
- name: Upload nuget packages
uses: actions/upload-artifact@v1
with:
name: nupkg
path: nupkg
- name: Publish Nuget to GitHub registry
run: dotnet nuget push ./nupkg/*.nupkg -s https://api.nuget.org/v3/index.json -k ${NUGET_API_KEY}
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}