diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index e58026e..b3af276 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -5,7 +5,7 @@ on: branches: - master tags: - - 'v*' + - '*' jobs: build-and-publish: @@ -22,6 +22,9 @@ jobs: run: | python -m pip install --upgrade pip pip install build + - name: Export version from git tag + run: | + echo "VERSION=$(git describe --tags --abbrev=0)" >> "$GITHUB_ENV" - name: Build run: python -m build - name: Upload to PyPI