~hristoast/mousikofidi

4677ae845cccae050afa4adbf3f4b24a5dcf8221 — Hristos N. Triantafillou 1 year, 4 months ago dc3b49b
Absolute paths, use twine directly in this context
1 files changed, 3 insertions(+), 1 deletions(-)

M pypi-upload.sh
M pypi-upload.sh => pypi-upload.sh +3 -1
@@ 1,5 1,7 @@
#!/bin/bash

script_dir="$(realpath $(dirname ${0}))"

if git diff-index --quiet HEAD --; then
    if git describe --exact-match --tags HEAD -- 2>/dev/null; then
        cat <<EOF > ~/.pypirc


@@ 7,7 9,7 @@ if git diff-index --quiet HEAD --; then
username = __token__
password = $(cat ~/.fidipypi)
EOF
        make upload-distribution-archive
        twine upload "${script_dir}"/dist/*
    else
        echo This is not a tag!  Exiting...
    exit 0