-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (27 loc) · 1003 Bytes
/
dotnet.yml
File metadata and controls
36 lines (27 loc) · 1003 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
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
- name: dotnet restore
run: dotnet restore src/OneBitSoftware.Slovom.sln
- name: dotnet build
run: dotnet build --no-restore --configuration Release src/OneBitSoftware.Slovom.sln
- name: dotnet test
run: dotnet test --no-build --configuration Release --verbosity normal src/OneBitSoftware.Slovom.sln
- name: dotnet pack
run: dotnet pack --configuration Release --no-build src/OneBitSoftware.Slovom/OneBitSoftware.Slovom.csproj
- name: dotnet nuget push
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push src/OneBitSoftware.Slovom/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate