Skip to content

Merge pull request #32 from FRACerqueira/v2.0.0 #10

Merge pull request #32 from FRACerqueira/v2.0.0

Merge pull request #32 from FRACerqueira/v2.0.0 #10

Workflow file for this run

name: Publish
on:
push:
tags: [ v* ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x' # SDK Version to use.
- name: Setup Version
id: setup_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_OUTPUT
- name: Pack NuGet Package
run: dotnet pack src/HealthCheckPlus.csproj -c Release -o ./dist -p:Version=${{ steps.setup_version.outputs.VERSION }}
- name: Publish
run: dotnet nuget push dist/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json