diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 26d96d9c..f3e5292b 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -19,13 +19,15 @@ jobs: python-version: 3.9 - name: Install Poetry - run: pip install poetry poetry-dynamic-versioning + run: pip install poetry - name: Install dependencies run: poetry install --no-interaction - name: Build source and wheel archives - run: poetry build + run: | + poetry version $(git describe --tags --abbrev=0) + poetry build - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@v1.5.0