Skip to content

refactor: standardize code formatting and improve readability in Crea… #19

refactor: standardize code formatting and improve readability in Crea…

refactor: standardize code formatting and improve readability in Crea… #19

Workflow file for this run

name: Publish to NuGet
on:
push:
branches: [main]
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build the solution
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal
- name: Pack the package
run: dotnet pack src/KPS.Core/KPS.Core.csproj --configuration Release --no-build --output ./nupkgs
- name: Push to NuGet
run: dotnet nuget push ./nupkgs/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate