Skip to content

Commit

Permalink
Further configurations for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutomi committed Jul 6, 2024
1 parent a748837 commit 1ba8362
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ jobs:
run: dotnet build -c Release --no-restore --version-suffix ${{ env.VERSION }}

- name: Pack
run: dotnet pack -c Release --no-build --no-restore --output ./pkgs --version-suffix ${{ env.VERSION }}
run: dotnet pack -c Release --no-build --no-restore --output ./pkgs --version-suffix ${{ env.VERSION }} --include-symbols

- name: Publish to GitHub Packages
run: dotnet nuget push ./pkgs/*.nupkg --source https://nuget.pkg.github.com/$GITHUB_REPOSITORY/ --api-key ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push ./pkgs/*.nupkg --source https://nuget.pkg.github.com/deveel/index.json --api-key ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NuGet
run: dotnet nuget push ./pkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
Binary file added deveel-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions mit.licenseheader
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
extensions: designer.cs generated.cs
extensions: .cs
// Copyright %CreationYear% Deveel AS
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
29 changes: 28 additions & 1 deletion src/Deveel.Results/Deveel.Results.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Deveel</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup>
<Authors>Antonello Provenzano</Authors>
<Company>Deveel</Company>
<Copyright>2024 (C) Antonello Provenzano</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Title>Deveel Results</Title>
<Description>A simple and unambitious library to implement the result pattern in services.</Description>
<PackageTags>result;results;operation;pattern;error;domain;ddd;domain-driven</PackageTags>
<RepositoryUrl>https://github.com/deveel/deveel.results</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageIcon>deveel-logo.png</PackageIcon>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" Condition="'$(TargetFramework)' != 'net8.0'"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" Condition="'$(TargetFramework)' == 'net8.0'"/>
</ItemGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\deveel-logo.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\..\mit.licenseheader">
<Pack>False</Pack>
</None>
</ItemGroup>
</Project>

0 comments on commit 1ba8362

Please sign in to comment.