Skip to content

smart-search-nuget

smart-search-nuget #17

Workflow file for this run

# 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-search-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'
- name: Build and pack SmartSearch Abstractions
run: dotnet build ./src/RoyalCode.SmartSearch.Abstractions/RoyalCode.SmartSearch.Abstractions.csproj -c Release -o ./publish/RoyalCode.SmartSearch.Abstractions
- name: Build and pack SmartSearch Persistence Abstractions
run: dotnet build ./src/RoyalCode.SmartSearch.Core/RoyalCode.SmartSearch.Core.csproj -c Release -o ./publish/RoyalCode.SmartSearch.Core
- name: Build and pack SmartSearch Persistence Linq
run: dotnet build ./src/RoyalCode.SmartSearch.Linq/RoyalCode.SmartSearch.Linq.csproj -c Release -o ./publish/RoyalCode.SmartSearch.Linq
- name: Build and pack SmartSearch Persistence EntityFramework
run: dotnet build ./src/RoyalCode.SmartSearch.EntityFramework/RoyalCode.SmartSearch.EntityFramework.csproj -c Release -o ./publish/RoyalCode.SmartSearch.EntityFramework
- name: Publish
run: dotnet nuget push ./**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json