-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 978 Bytes
/
ci.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
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: dotnet restore src/HealthCheck.sln --configfile src/NuGet.config
- name: Build
run: dotnet build --configuration Release src/HealthCheck.sln
- name: Test
run: dotnet test --configuration Release --no-build src/HealthCheck.sln
- name: Pack
run: dotnet pack --configuration Release --no-build src/HealthCheck.sln -o dist
- name: Push
run: dotnet nuget push dist/*.nupkg --source https://nuget.pkg.github.com/cerberix/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}