From 02c5f5d5768b495674341d987cc461ddb3a8bb35 Mon Sep 17 00:00:00 2001
From: mom-bbtsoftware <122623555+mom-bbtsoftware@users.noreply.github.com>
Date: Thu, 9 Mar 2023 16:57:17 +0100
Subject: [PATCH] Use dotnet pack command (#133) (#134)
---
.github/workflows/release.yml | 4 +--
nuspec/nuget/BBT.MaybePattern.nuspec | 33 ------------------
src/BBT.MaybePattern/BBT.MaybePattern.csproj | 20 ++++++++---
.../nuget => src/BBT.MaybePattern}/icon.png | Bin
4 files changed, 18 insertions(+), 39 deletions(-)
delete mode 100644 nuspec/nuget/BBT.MaybePattern.nuspec
rename {nuspec/nuget => src/BBT.MaybePattern}/icon.png (100%)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b2e927a..8321eae 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -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}}
diff --git a/nuspec/nuget/BBT.MaybePattern.nuspec b/nuspec/nuget/BBT.MaybePattern.nuspec
deleted file mode 100644
index 2dafc6f..0000000
--- a/nuspec/nuget/BBT.MaybePattern.nuspec
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
- BBT.Maybe
- BBT Maybe
- 3.1.1
- BBT Software AG
- bbtsoftware
- An option type for .NET.
- An option type for .NET.
- MIT
- https://bbtsoftware.github.io/BBT.Maybe/
- icon.png
- false
-
- Copyright © BBT Software AG
- Maybe Functional
- https://github.com/bbtsoftware/BBT.Maybe/releases/tag/3.1.1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/BBT.MaybePattern/BBT.MaybePattern.csproj b/src/BBT.MaybePattern/BBT.MaybePattern.csproj
index 3e6228a..ba981f5 100644
--- a/src/BBT.MaybePattern/BBT.MaybePattern.csproj
+++ b/src/BBT.MaybePattern/BBT.MaybePattern.csproj
@@ -3,15 +3,27 @@
netstandard2.0;net6.0
BBT.MaybePattern
- BBT Software AG
- BBT.Maybe
- An option type for .NET
- Copyright © BBT Software AG
..\BBT.MaybePattern.ruleset
bin\$(Configuration)\BBT.MaybePattern.XML
bin\$(Configuration)\
true
+
+
+ BBT.MaybePattern
+ An option type for .NET
+ BBT.MaybePattern
+ BBT Software AG
+ BBT Software AG
+ Copyright © BBT Software AG
+ Maybe Functional
+ icon.png
+ https://github.com/bbtsoftware/BBT.Maybe/
+ MIT
+ git
+ https://github.com/bbtsoftware/BBT.Maybe.git
+ https://github.com/bbtsoftware/BBT.Maybe/releases/tag/3.1.1
+
full
diff --git a/nuspec/nuget/icon.png b/src/BBT.MaybePattern/icon.png
similarity index 100%
rename from nuspec/nuget/icon.png
rename to src/BBT.MaybePattern/icon.png