-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (40 loc) · 1.11 KB
/
dotnetcore.yml
File metadata and controls
51 lines (40 loc) · 1.11 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
40
41
42
43
44
45
46
47
48
49
50
51
name: .NET Core
on:
push:
branches: [ master ]
tags:
- v*
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 0
submodules: recursive
- name: Fetch/Prune Tags
run: git fetch --force --prune --tags
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.200
- name: Setup Graphviz
uses: kamiazya/setup-graphviz@v1
- name: Dump Environment
run: env
- name: NuGet Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration release --no-restore
- name: Test
run: dotnet test --configuration release --no-restore --no-build
- name: Pack
run: dotnet pack --configuration release --no-restore --no-build
- name: Push
run: |
for pkg in _artifacts/*.nupkg; do
dotnet nuget push --api-key "${{secrets.NUGET_PUSH_TOKEN}}" --source https://api.nuget.org/v3/index.json --skip-duplicate --no-symbols true "${pkg}";
done