Skip to content

Bump Npgsql from 8.0.2 to 8.0.3 in /tests/Searchlight.Tests (#142) #8

Bump Npgsql from 8.0.2 to 8.0.3 in /tests/Searchlight.Tests (#142)

Bump Npgsql from 8.0.2 to 8.0.3 in /tests/Searchlight.Tests (#142) #8

Workflow file for this run

name: NuGet Publish
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Update NuGet package
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x"
include-prerelease: false
- name: Build solution and generate NuGet package
run: dotnet build -c Release
- name: Setup Nuget
uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
nuget-version: "5.x"
- name: Run Nuget pack
run: nuget pack Searchlight.nuspec
- name: Push generated package to GitHub registry
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}