-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (29 loc) · 914 Bytes
/
build.yml
File metadata and controls
41 lines (29 loc) · 914 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
34
35
36
37
38
39
40
name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.108
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Test with nunit
run: dotnet test --verbosity normal
- name: Pack with nuget
run: dotnet pack --configuration=Release -o ../artifacts/
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: artifacts
path: ./artifacts/
- name: Setup nuget
uses: nuget/setup-nuget@v1
with:
nuget-version: 'latest'
- name: Setup nuget config
run: nuget sources add -name github -source "https://nuget.pkg.github.com/apmem/index.json" -username ${{ github.actor }} -password ${{ secrets.GITHUB_TOKEN }}