diff --git a/.github/workflows/push-to-pypi.yml b/.github/workflows/push-to-pypi.yml index 1d333a4..cd9672e 100644 --- a/.github/workflows/push-to-pypi.yml +++ b/.github/workflows/push-to-pypi.yml @@ -7,6 +7,11 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Get history and tags for SCM versioning to work + run: + git fetch --prune --unshallow + git fetch --depth=1 origin +refs/tags/*:refs/tags/* + - name: Set up Python uses: actions/setup-python@v5 with: