Skip to content

Commit be80036

Browse files
committed
Add PushNuget.sh
1 parent c304728 commit be80036

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

NBitcoin.Altcoins/PushNuget.sh

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]+){1,3}).*/\1/')
8+
git tag -a "NBitcoin.Altcoins/v$ver" -m "NBitcoin.Altcoins/$ver"
9+
git push --tags

NBitcoin/PushNuget.sh

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]+){1,3}).*/\1/')
8+
git tag -a "v$ver" -m "$ver"
9+
git push --tags

0 commit comments

Comments
 (0)