-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 931 Bytes
/
dotnet.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
38
39
40
41
42
43
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['8.0.x']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
working-directory: src/Rizzy
- name: Publish
run: dotnet publish --no-restore -c Release -o ./publish
working-directory: src/Rizzy
- name: Test
run: dotnet test --no-build --verbosity normal
working-directory: src/Rizzy
- name: Publish
uses: brandedoutcast/publish-nuget@v2.5.2
with:
PROJECT_FILE_PATH: src/Rizzy/Rizzy.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}