Skip to content

smart-problems-nuget #9

smart-problems-nuget

smart-problems-nuget #9

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: smart-problems-nuget
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
include-prerelease: true
- name: Build and pack SmartProblems
run: dotnet build ./src/RoyalCode.SmartProblems/RoyalCode.SmartProblems.csproj -c Release
- name: Build and pack Conversions
run: dotnet build ./src/RoyalCode.SmartProblems.Conversions/RoyalCode.SmartProblems.Conversions.csproj -c Release
- name: Build and pack EntityFramework
run: dotnet build ./src/RoyalCode.SmartProblems.EntityFramework/RoyalCode.SmartProblems.EntityFramework.csproj -c Release
- name: Build and pack ProblemDetails
run: dotnet build ./src/RoyalCode.SmartProblems.ProblemDetails/RoyalCode.SmartProblems.ProblemDetails.csproj -c Release
- name: Build and pack ApiResults
run: dotnet build ./src/RoyalCode.SmartProblems.ApiResults/RoyalCode.SmartProblems.ApiResults.csproj -c Release
- name: Build and pack Http
run: dotnet build ./src/RoyalCode.SmartProblems.Http/RoyalCode.SmartProblems.Http.csproj -c Release
- name: Build and pack FluentValidation
run: dotnet build ./src/RoyalCode.SmartProblems.FluentValidation/RoyalCode.SmartProblems.FluentValidation.csproj -c Release
- name: Publish
run: dotnet nuget push ./**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json