Skip to content

Bump to 2.2.0

Bump to 2.2.0 #2

Workflow file for this run

name: NuGet Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish:
name: Publish NuGet Package
environment: nuget.org
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build -c Release
- name: Publish NuGet Package
run: dotnet nuget push TRENZ.Lib.RazorMail.Core/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: Publish NuGet Package
run: dotnet nuget push TRENZ.Lib.RazorMail.MailKit/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: Publish NuGet Package
run: dotnet nuget push TRENZ.Lib.RazorMail.SystemNet/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true