-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 924 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
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@v4
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 }}