Elara6331
67414acfed
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
23 lines
492 B
Bash
Executable File
23 lines
492 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z "$PLUGIN_USERNAME" ]; then
|
|
echo "ERROR: no username provided"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$PLUGIN_PASSWORD" ]; then
|
|
echo "ERROR: no password provided"
|
|
exit 1
|
|
fi
|
|
|
|
export TWINE_USERNAME="$PLUGIN_USERNAME"
|
|
export TWINE_PASSWORD="$PLUGIN_PASSWORD"
|
|
export TWINE_REPOSITORY_URL="$PLUGIN_REPOSITORY_URL"
|
|
|
|
|
|
if [ -n "$PLUGIN_COMMENT" ]; then
|
|
twine upload dist/music_kraken* --non-interactive --comment "$PLUGIN_COMMENT"
|
|
else
|
|
twine upload dist/music_kraken* --non-interactive
|
|
fi
|