File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments