diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..6f98d0a
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,42 @@
+name: Release Workflow
+
+on:
+ create:
+ branches:
+ - 'release/*'
+
+jobs:
+ build-and-publish:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+
+ - name: Set up .NET Core
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: '8.x.x' # You can adjust the version if needed
+
+ - name: Extract version
+ run: |
+ version=$(echo "${{ github.ref }}" | sed 's/refs\/heads\/release\///')
+ echo "Version extracted from branch name: $version"
+ id: extract-version
+
+ - name: Build
+ run: |
+ dotnet restore
+ dotnet build --configuration Release
+ - name: Push
+ run: |
+ packages=$(find . -name '*.nupkg')
+
+ echo ${{ steps.extract-version.outputs.version }}
+
+ for package in $packages; do
+ dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY
+ done
+
+ env:
+ NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
diff --git a/src/Detached.PatchTypes.Newtonsoft/Detached.PatchTypes.Newtonsoft.csproj b/src/Detached.PatchTypes.Newtonsoft/Detached.PatchTypes.Newtonsoft.csproj
index dadbdd2..0cb65d1 100644
--- a/src/Detached.PatchTypes.Newtonsoft/Detached.PatchTypes.Newtonsoft.csproj
+++ b/src/Detached.PatchTypes.Newtonsoft/Detached.PatchTypes.Newtonsoft.csproj
@@ -1,52 +1,41 @@
-
- netstandard2.0
- true
- 6.0.0
- Leonardo Porro
- Leonardo Porro
- Detached Patch Types
-
- Allows to create a proxy type of a given DTO that implements IPatch interface and allows to check for dirty (or set) properies. It also provides a JsonConverter that handles IPatch types.
- This library is a part of Detached.Mappers.
-
- LICENSE
- logo.png
- https://github.com/leonardoporro/Detached-PatchTypes
- https://github.com/leonardoporro/Detached-PatchTypes
- patch, proxy, dto, dirty, undefined, json
-
+
+ net8.0;net7.0;net6.0
+ true
+ $(Version)
+ Leonardo Porro
+ Leonardo Porro
+ Detached Patch Types
+
+ Allows to create a proxy type of a given DTO that implements IPatch interface and allows to check for dirty (or set) properies. It also provides a JsonConverter that handles IPatch types.
+ This library is a part of Detached.Mappers.
+
+ LICENSE
+ logo.png
+ https://github.com/leonardoporro/Detached-PatchTypes
+ https://github.com/leonardoporro/Detached-PatchTypes
+ patch, proxy, dto, dirty, undefined, json
+
-
-
- True
-
-
-
- True
-
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
+
+
+
-
-
-
+
+
+ True
+
+
+
+ True
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Detached.PatchTypes/Detached.PatchTypes.csproj b/src/Detached.PatchTypes/Detached.PatchTypes.csproj
index 4e2f844..eaf982e 100644
--- a/src/Detached.PatchTypes/Detached.PatchTypes.csproj
+++ b/src/Detached.PatchTypes/Detached.PatchTypes.csproj
@@ -1,35 +1,37 @@
-
- netstandard2.0
- true
- 6.0.5
- Leonardo Porro
- Leonardo Porro
- Detached Patch Types
- Allows to create a proxy type of a given DTO that implements IPatch interface and allows to check for dirty (or set) properies. It also provides a JsonConverter that handles IPatch types.
-This library is a part of Detached.Mappers.
- LICENSE
- logo.png
- https://github.com/leonardoporro/Detached-PatchTypes
- https://github.com/leonardoporro/Detached-PatchTypes
- patch, proxy, dto, dirty, undefined, json
-
+
+ net8.0;net7.0;net6.0
+ true
+ $(Version)
+ Leonardo Porro
+ Leonardo Porro
+ Detached Patch Types
+
+ Allows to create a proxy type of a given DTO that implements IPatch interface and allows to check for dirty (or set) properies. It also provides a JsonConverter that handles IPatch types.
+ This library is a part of Detached.Mappers.
+
+ LICENSE
+ logo.png
+ https://github.com/leonardoporro/Detached-PatchTypes
+ https://github.com/leonardoporro/Detached-PatchTypes
+ patch, proxy, dto, dirty, undefined, json
+
-
-
-
-
+
+
+
+
-
-
- True
-
-
-
- True
-
-
-
+
+
+ True
+
+
+
+ True
+
+
+
\ No newline at end of file
diff --git a/test/Detached.PatchTypes.Tests/Detached.PatchTypes.Tests.csproj b/test/Detached.PatchTypes.Tests/Detached.PatchTypes.Tests.csproj
index bdb5397..8e009c7 100644
--- a/test/Detached.PatchTypes.Tests/Detached.PatchTypes.Tests.csproj
+++ b/test/Detached.PatchTypes.Tests/Detached.PatchTypes.Tests.csproj
@@ -1,27 +1,27 @@
-
- net6.0
+
+ net8.0
- false
-
+ false
+
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
-
-
-
-
+
+
+
+