mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 13:36:12 +01:00
Add NuGet package tools
This commit is contained in:
1 parent
61f17e3c1d
commit
d8e19e74ed
14 files changed
+680
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Automatically exit on error
|
||||
set -e
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Specify the NuGet API Key as a parameter to this script"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dotnet build -c Release
|
||||
|
||||
# Find every file that matches the glob ./*/bin/Release/*.nupkg
|
||||
# and push it to nuget.org using the key specified as a parameter
|
||||
# to this script
|
||||
|
||||
find \
|
||||
-type f \
|
||||
-regex "\./\w+/bin/Release/[^/]+\.nupkg" \
|
||||
-exec dotnet nuget push -k "$1" -s "https://api.nuget.org/v3/index.json" "{}" ";"
|
||||
|
||||
Reference in new issue
Block a user