Skip to content

Merge branch 'main' of github.com:minhsangdotcom/elasticsearch-fluent… #1

Merge branch 'main' of github.com:minhsangdotcom/elasticsearch-fluent…

Merge branch 'main' of github.com:minhsangdotcom/elasticsearch-fluent… #1

Workflow file for this run

name: Publish NuGet Package
on:
push:
tags:
- "v*.*.*"
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.406"
- name: Restore dependencies
run: dotnet restore
- name: Build the project
run: dotnet build --configuration Release --no-restore
- name: Pack NuGet package
run: dotnet pack --configuration Release --no-build --output ${{ vars.packDirectory }}
- name: Publish to NuGet
run: dotnet nuget push ${{ vars.packDirectory }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate