docker-cross-compiler/sh/publish.sh

31 lines
505 B
Bash
Raw Normal View History

#!/bin/bash
if [-z "$1"]
then
$1 = $(dirname "$0")
fi
2024-06-13 19:57:08 +02:00
if [ -z "$NUGET_API_KEY" ]
then
2024-06-13 20:01:26 +02:00
echo "Please define NUGET_API_KEY"
exit 1
fi
2024-06-13 19:57:08 +02:00
if [ -z "$NUGET_USER_NAME" ]
then
echo "Please define NUGET_USER_NAME"
exit 1
fi
if [ -z "$NUGET_INDEX" ]
then
echo "Please define NUGET_INDEX"
exit 1
fi
cd $1
dotnet nuget add source \
2024-06-13 19:57:08 +02:00
-n ReFuel -u "$NUGET_USER_NAME" -p "$NUGET_API_KEY" \
--store-password-in-clear-text \
2024-06-13 19:57:08 +02:00
"$NUGET_INDEX"
dotnet nuget push -s ReFuel bin/*/*.nupkg