borgbackup/scripts/upload-pypi
Thomas Waldmann 471e302024
upload-pypi: use borg-specific repository names
so it finds the right api token in .pypirc
2025-11-01 19:57:26 +01:00

18 lines
261 B
Bash
Executable file

#!/bin/bash
R=$1
if [ "$R" = "" ]; then
echo "Usage: upload-pypi 1.2.3 [test]"
exit
fi
if [ "$2" = "test" ]; then
export TWINE_REPOSITORY=testborgbackup
else
export TWINE_REPOSITORY=borgbackup
fi
D=dist/borgbackup-$R.tar.gz
twine upload $D