diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..c917519
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -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
diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml
deleted file mode 100644
index b28dda2..0000000
--- a/.github/workflows/dotnetcore.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-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
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 0000000..f2871ca
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -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
diff --git a/README.md b/README.md
index 438ea59..4917b40 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# NETCore.MailKit
[](https://nuget.org/packages/Devity.NETCore.MailKit)
-[](https://github.com/jstedfast/MailKit)
+[](https://github.com/jstedfast/MailKit)
[](https://github.com/dkorecko/Devity.NETCore.MailKit/blob/master/LICENSE)
[](https://github.com/dkorecko/Devity.NETCore.MailKit/actions)
diff --git a/src/Devity.NETCore.MailKit/Devity.NETCore.MailKit.csproj b/src/Devity.NETCore.MailKit/Devity.NETCore.MailKit.csproj
index 6457280..016acf6 100644
--- a/src/Devity.NETCore.MailKit/Devity.NETCore.MailKit.csproj
+++ b/src/Devity.NETCore.MailKit/Devity.NETCore.MailKit.csproj
@@ -3,17 +3,19 @@
net8.0
True
- 2.2.0
+ 2.2.1
Lvcc, Dávid Korečko (dkorecko)
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
Copyright 2017-2025 (c) Lvcc, Dávid Korečko. All rights reserved
https://github.com/dkorecko/Devity.NETCore.MailKit
+ README.md
+ LICENSE
https://github.com/dkorecko/Devity.NETCore.MailKit
MailKit ASP.NET Devity Email SMTP
git
- 2.2.0
- 2.2.0
+ 2.2.1
+ 2.2.1
@@ -22,6 +24,11 @@
+
+
+
+
+