2024-03-19 20:02:20 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd $(dirname "$0")
|
2024-06-14 17:32:16 +02:00
|
|
|
|
|
|
|
if [ -z "$REFUEL_API_KEY" ]
|
|
|
|
then
|
|
|
|
echo "Please define REFUEL_API_KEY"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$NUGET_USER_NAME" ]
|
|
|
|
then
|
|
|
|
echo "Please define NUGET_USER_NAME"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$NUGET_INDEX" ]
|
2024-03-19 20:02:20 +01:00
|
|
|
then
|
2024-06-14 17:32:16 +02:00
|
|
|
echo "Please define NUGET_INDEX"
|
2024-03-19 20:02:20 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
dotnet nuget add source \
|
2024-06-14 17:32:16 +02:00
|
|
|
-n ReFuel -u "$NUGET_USER_NAME" -p "$REFUEL_API_KEY" \
|
2024-03-19 20:02:20 +01:00
|
|
|
--store-password-in-clear-text \
|
2024-06-14 17:32:16 +02:00
|
|
|
"$NUGET_INDEX"
|
2024-06-14 17:51:16 +02:00
|
|
|
dotnet nuget push -s ReFuel bin/*/*.nupkg
|