ReFuel.StbImage/publish.sh

28 lines
476 B
Bash
Raw Normal View History

#!/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" ]
then
2024-06-14 17:32:16 +02:00
echo "Please define NUGET_INDEX"
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" \
--store-password-in-clear-text \
2024-06-14 17:32:16 +02:00
"$NUGET_INDEX"
dotnet nuget push -s ReFeul bin/*/*.nupkg