Skip to content

Commit

Permalink
Use dotnet pack command (#133) (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
mom-bbtsoftware authored Mar 9, 2023
1 parent 846c55c commit 02c5f5d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: NuGet/setup-nuget@v1

- name: Package NuGet
run: nuget pack ../nuspec/nuget/*.nuspec
run: dotnet pack -c $BUILD_CONFIG -p:PackageVersion=$BUILD_VERSION

- name: Publish NuGet
run: nuget push ./*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}}
run: nuget push ./BBT.MaybePattern/bin/Release/BBT.MaybePattern.$BUILD_VERSION.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGETORG}}
33 changes: 0 additions & 33 deletions nuspec/nuget/BBT.MaybePattern.nuspec

This file was deleted.

20 changes: 16 additions & 4 deletions src/BBT.MaybePattern/BBT.MaybePattern.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,27 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<AssemblyTitle>BBT.MaybePattern</AssemblyTitle>
<Company>BBT Software AG</Company>
<Product>BBT.Maybe</Product>
<Description>An option type for .NET</Description>
<Copyright>Copyright © BBT Software AG</Copyright>
<CodeAnalysisRuleSet>..\BBT.MaybePattern.ruleset</CodeAnalysisRuleSet>
<DocumentationFile>bin\$(Configuration)\BBT.MaybePattern.XML</DocumentationFile>
<OutputPath>bin\$(Configuration)\</OutputPath>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<PropertyGroup>
<Title>BBT.MaybePattern</Title>
<Description>An option type for .NET</Description>
<Product>BBT.MaybePattern</Product>
<Company>BBT Software AG</Company>
<Authors>BBT Software AG</Authors>
<Copyright>Copyright © BBT Software AG</Copyright>
<PackageTags>Maybe Functional</PackageTags>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://github.com/bbtsoftware/BBT.Maybe/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/bbtsoftware/BBT.Maybe.git</RepositoryUrl>
<PackageReleaseNotes>https://github.com/bbtsoftware/BBT.Maybe/releases/tag/3.1.1</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType>
Expand Down
File renamed without changes

0 comments on commit 02c5f5d

Please sign in to comment.