Skip to content

Merge pull request #12 from albx/feature/2-recaptcha-v3-blazor #1

Merge pull request #12 from albx/feature/2-recaptcha-v3-blazor

Merge pull request #12 from albx/feature/2-recaptcha-v3-blazor #1

name: Publish Blazor project to NuGet
on:
push:
branches: [ 'main' ]
paths:
- 'src/KITT.Web.ReCaptcha.Blazor/**'
workflow_dispatch:
env:
NET_VERSION: '7.x'
PROJECT_PATH: 'src/KITT.Web.ReCaptcha.Blazor'
PROJECT_FILE: 'KITT.Web.ReCaptcha.Blazor.csproj'
jobs:
publish:
name: Publish package to NuGet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET Core SDK ${{ env.NET_VERSION }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.NET_VERSION }}
- name: Create nupkg file
run: dotnet pack -c Release -o . '${{ env.PROJECT_PATH }}/${{ env.PROJECT_FILE }}'
- name: Publish on NuGet
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_APIKEY }} -s https://api.nuget.org/v3/index.json