From 8099f0e05d9c78e9cbe3a5cbcf14f79fc270ed0c Mon Sep 17 00:00:00 2001 From: Anze Date: Thu, 12 Dec 2019 21:02:19 +0100 Subject: [PATCH] Fix invalid version when deploying to PyPi --- .github/workflows/on_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on_release.yml b/.github/workflows/on_release.yml index 0388751..18a8052 100644 --- a/.github/workflows/on_release.yml +++ b/.github/workflows/on_release.yml @@ -30,7 +30,7 @@ jobs: export VERSION=${GITHUB_REF_TAG:10:50} echo "Version is $VERSION" pip install --no-cache-dir twine pipenv wheel - sed -i "s/@@VERSION@@/$CI_COMMIT_TAG/g" ./setup.py + sed -i "s/@@VERSION@@/$VERSION/g" ./setup.py pipenv lock -r > requirements.txt python setup.py install python setup.py sdist