-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 877 Bytes
/
main.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
34
35
36
37
name: main
on:
push:
branches: "*"
tags: "*"
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.*"
- run: dotnet test -c Release --filter FullyQualifiedName\!~Performance
publish:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.*"
- run: dotnet pack -c Release --output .
- run: |
dotnet nuget push \
--source https://api.nuget.org/v3/index.json \
--api-key "$NUGET_TOKEN" \
*.nupkg
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}