Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
22 changes: 0 additions & 22 deletions .github/workflows/dotnetcore.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish NuGet Package

on:
workflow_call:
secrets:
NUGET_API_KEY:
required: true
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: Build and test
working-directory: ./src/Devity.NETCore.MailKit
run: |
dotnet build --configuration Release
# dotnet test --configuration Release --no-build

- name: Package
working-directory: ./src/Devity.NETCore.MailKit
run: dotnet pack --configuration Release --no-build

- name: Publish
working-directory: ./src/Devity.NETCore.MailKit
run: |
cd bin/Release
dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NETCore.MailKit

[![NuGet](https://img.shields.io/nuget/v/Devity.NETCore.MailKit.svg)](https://nuget.org/packages/Devity.NETCore.MailKit)
[![MailKit](https://img.shields.io/badge/MailKit-2.6.0-orange)](https://github.com/jstedfast/MailKit)
[![MailKit](https://img.shields.io/badge/MailKit-4.11.0-orange)](https://github.com/jstedfast/MailKit)
[![license](https://img.shields.io/github/license/dkorecko/Devity.NETCore.MailKit.svg)](https://github.com/dkorecko/Devity.NETCore.MailKit/blob/master/LICENSE)
[![GitHub-Actions-Img](https://github.com/dkorecko/Devity.NETCore.MailKit/workflows/build/badge.svg)](https://github.com/dkorecko/Devity.NETCore.MailKit/actions)

Expand Down
13 changes: 10 additions & 3 deletions src/Devity.NETCore.MailKit/Devity.NETCore.MailKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>2.2.0</Version>
<Version>2.2.1</Version>
<Authors>Lvcc, Dávid Korečko (dkorecko)</Authors>
<Company />
<Description>Maintained MailKit extension for ASP.NET Core. Send e-mail easily in an ASP.NET Core project. See release notes at: https://github.com/dkorecko/Devity.NETCore.MailKit/releases</Description>
<Copyright>Copyright 2017-2025 (c) Lvcc, Dávid Korečko. All rights reserved</Copyright>
<PackageProjectUrl>https://github.com/dkorecko/Devity.NETCore.MailKit</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryUrl>https://github.com/dkorecko/Devity.NETCore.MailKit</RepositoryUrl>
<PackageTags>MailKit ASP.NET Devity Email SMTP</PackageTags>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>2.2.0</AssemblyVersion>
<FileVersion>2.2.0</FileVersion>
<AssemblyVersion>2.2.1</AssemblyVersion>
<FileVersion>2.2.1</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -22,6 +24,11 @@
<None Remove="Core\Internal\**" />
</ItemGroup>

<ItemGroup Label="Resources">
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<None Include="..\..\LICENSE" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MailKit" Version="4.11.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
Expand Down