Skip to content

feat: Add DashSearch projects, client, and sample usage (#6) #1

feat: Add DashSearch projects, client, and sample usage (#6)

feat: Add DashSearch projects, client, and sample usage (#6) #1

Workflow file for this run

name: NuGet-Build
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build & Pack
run: |
dotnet build -c Release --no-restore
dotnet pack -c Release -o nupkgs -p Version=${{ github.tag_name }}
- name: Upload Artifact
uses: actions/[email protected]
with:
name: nuget-packages
path: ${{ github.workspace }}/nupkgs/*.nupkg
- name: Push NuGet
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate