diff --git a/.gitea/workflows/publish-nugets.yaml b/.gitea/workflows/publish-nugets.yaml
index e69de29..c92dc17 100644
--- a/.gitea/workflows/publish-nugets.yaml
+++ b/.gitea/workflows/publish-nugets.yaml
@@ -0,0 +1,38 @@
+# This workflow will build a .NET project
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
+
+name: Publish NuGets
+
+on:
+ release:
+ types:
+ - published
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Extract Release Version
+ id: extract_version
+ run: echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
+
+ - name: Debug Release Version
+ run: echo "RELEASE_VERSION=${{ env.RELEASE_VERSION }}"
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: 8.x
+
+ - name: Restore dependencies
+ run: dotnet restore
+
+ - name: Build and Pack NuGet Package
+ run: dotnet pack -c Release -o ./artifacts -p:Version=${{ env.RELEASE_VERSION }}
+
+ - name: Publish to NuGet.org
+ run: |
+ dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
\ No newline at end of file
diff --git a/OpenHarbor.CQRS.Abstractions/OpenHarbor.CQRS.Abstractions.csproj b/OpenHarbor.CQRS.Abstractions/OpenHarbor.CQRS.Abstractions.csproj
index 903f35c..d9a2e05 100644
--- a/OpenHarbor.CQRS.Abstractions/OpenHarbor.CQRS.Abstractions.csproj
+++ b/OpenHarbor.CQRS.Abstractions/OpenHarbor.CQRS.Abstractions.csproj
@@ -11,6 +11,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg
diff --git a/OpenHarbor.CQRS.AspNetCore.Abstractions/OpenHarbor.CQRS.AspNetCore.Abstractions.csproj b/OpenHarbor.CQRS.AspNetCore.Abstractions/OpenHarbor.CQRS.AspNetCore.Abstractions.csproj
index 72b45cf..be62e0c 100644
--- a/OpenHarbor.CQRS.AspNetCore.Abstractions/OpenHarbor.CQRS.AspNetCore.Abstractions.csproj
+++ b/OpenHarbor.CQRS.AspNetCore.Abstractions/OpenHarbor.CQRS.AspNetCore.Abstractions.csproj
@@ -11,6 +11,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg
diff --git a/OpenHarbor.CQRS.AspNetCore/OpenHarbor.CQRS.AspNetCore.csproj b/OpenHarbor.CQRS.AspNetCore/OpenHarbor.CQRS.AspNetCore.csproj
index b7d588c..7ce3ff7 100644
--- a/OpenHarbor.CQRS.AspNetCore/OpenHarbor.CQRS.AspNetCore.csproj
+++ b/OpenHarbor.CQRS.AspNetCore/OpenHarbor.CQRS.AspNetCore.csproj
@@ -11,6 +11,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg
diff --git a/OpenHarbor.CQRS.DynamicQuery.Abstractions/OpenHarbor.CQRS.DynamicQuery.Abstractions.csproj b/OpenHarbor.CQRS.DynamicQuery.Abstractions/OpenHarbor.CQRS.DynamicQuery.Abstractions.csproj
index f055a35..d1199f1 100644
--- a/OpenHarbor.CQRS.DynamicQuery.Abstractions/OpenHarbor.CQRS.DynamicQuery.Abstractions.csproj
+++ b/OpenHarbor.CQRS.DynamicQuery.Abstractions/OpenHarbor.CQRS.DynamicQuery.Abstractions.csproj
@@ -11,6 +11,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg
diff --git a/OpenHarbor.CQRS.DynamicQuery.AspNetCore/OpenHarbor.CQRS.DynamicQuery.AspNetCore.csproj b/OpenHarbor.CQRS.DynamicQuery.AspNetCore/OpenHarbor.CQRS.DynamicQuery.AspNetCore.csproj
index f1ebc5b..080aa0f 100644
--- a/OpenHarbor.CQRS.DynamicQuery.AspNetCore/OpenHarbor.CQRS.DynamicQuery.AspNetCore.csproj
+++ b/OpenHarbor.CQRS.DynamicQuery.AspNetCore/OpenHarbor.CQRS.DynamicQuery.AspNetCore.csproj
@@ -9,6 +9,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg
diff --git a/OpenHarbor.CQRS.DynamicQuery/OpenHarbor.CQRS.DynamicQuery.csproj b/OpenHarbor.CQRS.DynamicQuery/OpenHarbor.CQRS.DynamicQuery.csproj
index c5b47cd..761dfb2 100644
--- a/OpenHarbor.CQRS.DynamicQuery/OpenHarbor.CQRS.DynamicQuery.csproj
+++ b/OpenHarbor.CQRS.DynamicQuery/OpenHarbor.CQRS.DynamicQuery.csproj
@@ -10,6 +10,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg
diff --git a/OpenHarbor.CQRS.FluentValidation/OpenHarbor.CQRS.FluentValidation.csproj b/OpenHarbor.CQRS.FluentValidation/OpenHarbor.CQRS.FluentValidation.csproj
index 8a1a976..949c899 100644
--- a/OpenHarbor.CQRS.FluentValidation/OpenHarbor.CQRS.FluentValidation.csproj
+++ b/OpenHarbor.CQRS.FluentValidation/OpenHarbor.CQRS.FluentValidation.csproj
@@ -10,6 +10,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg
diff --git a/OpenHarbor.CQRS/OpenHarbor.CQRS.csproj b/OpenHarbor.CQRS/OpenHarbor.CQRS.csproj
index d464768..88e6142 100644
--- a/OpenHarbor.CQRS/OpenHarbor.CQRS.csproj
+++ b/OpenHarbor.CQRS/OpenHarbor.CQRS.csproj
@@ -11,6 +11,12 @@
git
true
MIT
+
+ portable
+ true
+ true
+ true
+ snupkg