#!/bin/bash set -e cd $(dirname $0)/.. vi pyproject.toml version=$(grep -oPe '^ *version *= *.*$' pyproject.toml | awk '{print $3}' | sed 's/"//g;'"s/'//g" ) . venv_build/bin/activate python3 -m build python3 -m twine upload --repository gitea dist/django_translatable_fields-$version