diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 3db8e5e..ac38005 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -61,6 +61,12 @@ jobs: pip install setuptools wheel pip install -r requirements.txt + - name: Get current version + id: get_version + run: | + VERSION=$(python -c "from version import __version__; print(__version__)") + echo "VERSION=$VERSION" >> $GITHUB_ENV + - name: Build the package run: | python setup.py sdist bdist_wheel diff --git a/version.py b/version.py index 6023a58..761862a 100644 --- a/version.py +++ b/version.py @@ -1,2 +1,2 @@ # version.py -__version__ = "0.3.0" +__version__ = "0.4.0"