-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leonardo Porro
committed
Jan 22, 2024
1 parent
5fb126f
commit f55081d
Showing
4 changed files
with
127 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |
79 changes: 34 additions & 45 deletions
79
src/Detached.PatchTypes.Newtonsoft/Detached.PatchTypes.Newtonsoft.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,41 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>6.0.0</Version> | ||
<Authors>Leonardo Porro</Authors> | ||
<Company>Leonardo Porro</Company> | ||
<Product>Detached Patch Types</Product> | ||
<Description> | ||
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. | ||
</Description> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/leonardoporro/Detached-PatchTypes</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/leonardoporro/Detached-PatchTypes</RepositoryUrl> | ||
<PackageTags>patch, proxy, dto, dirty, undefined, json</PackageTags> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>$(Version)</Version> | ||
<Authors>Leonardo Porro</Authors> | ||
<Company>Leonardo Porro</Company> | ||
<Product>Detached Patch Types</Product> | ||
<Description> | ||
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. | ||
</Description> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/leonardoporro/Detached-PatchTypes</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/leonardoporro/Detached-PatchTypes</RepositoryUrl> | ||
<PackageTags>patch, proxy, dto, dirty, undefined, json</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\..\logo.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="coverlet.collector" Version="3.2.0"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> | ||
<PackageReference Include="xunit" Version="2.4.2" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Detached.PatchTypes\Detached.PatchTypes.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Detached.PatchTypes\Detached.PatchTypes.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\..\logo.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>6.0.5</Version> | ||
<Authors>Leonardo Porro</Authors> | ||
<Company>Leonardo Porro</Company> | ||
<Product>Detached Patch Types</Product> | ||
<Description>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.</Description> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/leonardoporro/Detached-PatchTypes</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/leonardoporro/Detached-PatchTypes</RepositoryUrl> | ||
<PackageTags>patch, proxy, dto, dirty, undefined, json</PackageTags> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks> | ||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
<Version>$(Version)</Version> | ||
<Authors>Leonardo Porro</Authors> | ||
<Company>Leonardo Porro</Company> | ||
<Product>Detached Patch Types</Product> | ||
<Description> | ||
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. | ||
</Description> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageProjectUrl>https://github.com/leonardoporro/Detached-PatchTypes</PackageProjectUrl> | ||
<RepositoryUrl>https://github.com/leonardoporro/Detached-PatchTypes</RepositoryUrl> | ||
<PackageTags>patch, proxy, dto, dirty, undefined, json</PackageTags> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Detached.RuntimeTypes" Version="6.0.5" /> | ||
<PackageReference Include="System.Text.Json" Version="6.0.0" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Detached.RuntimeTypes" Version="8.0.0" /> | ||
<PackageReference Include="System.Text.Json" Version="8.0.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\..\logo.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\LICENSE"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
<None Include="..\..\logo.png"> | ||
<Pack>True</Pack> | ||
<PackagePath></PackagePath> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
40 changes: 20 additions & 20 deletions
40
test/Detached.PatchTypes.Tests/Detached.PatchTypes.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
|
||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
<IsPackable>false</IsPackable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" /> | ||
<PackageReference Include="xunit" Version="2.4.2" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector" Version="1.3.0"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> | ||
<PackageReference Include="xunit" Version="2.6.6" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="coverlet.collector" Version="6.0.0"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Detached.PatchTypes.Newtonsoft\Detached.PatchTypes.Newtonsoft.csproj" /> | ||
<ProjectReference Include="..\..\src\Detached.PatchTypes\Detached.PatchTypes.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Detached.PatchTypes.Newtonsoft\Detached.PatchTypes.Newtonsoft.csproj" /> | ||
<ProjectReference Include="..\..\src\Detached.PatchTypes\Detached.PatchTypes.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |