Skip to content
Snippets Groups Projects

v0.2.1

Merged dilawar requested to merge devel into main
Files
2
+ 3
2
@@ -3,10 +3,11 @@
set -e
git clean -fxd .
_version=$(git describe --exact-match --tags HEAD || echo $(poetry version -s).dev$(date +%Y%m%d))
_version=$(git describe --exact-match --tags HEAD || echo $(poetry version -s).dev$(date -u +%s))
VERSION=${_version#'v'} # remove prefixed 'v' if any
cp pyproject.toml /tmp/pyproject.toml.1
poetry version ${VERSION}
poetry build
poetry run twine upload dist/*.whl -u __token__ -p $BITIA_PYPI_TOKEN || echo "Failed to upload"
python3 -m pip install twine --upgrade
twine upload dist/*.whl -u __token__ -p $BITIA_PYPI_TOKEN
mv /tmp/pyproject.toml.1 pyproject.toml
Loading