Skip to content

Commit 78000dd

Browse files
committed
Add PushNuget.sh to TestFramework Package
1 parent ad6450e commit 78000dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
rm -rf "bin/release/"
4+
dotnet pack --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg
5+
package=$(find ./bin/Release -name "*.nupkg" -type f | head -n 1)
6+
dotnet nuget push "$package" --source "https://api.nuget.org/v3/index.json"
7+
ver=$(basename "$package" | sed -E 's/.*\.([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)*).*/\1/')
8+
git tag -a "NBitcoin.TestFramework/v$ver" -m "NBitcoin.TestFramework/$ver"
9+
git push --tags

0 commit comments

Comments
 (0)