[ci] Fix pypi_upload workflow

pypi_upload has been broken since #810, because `actions/checkout` defaults to a shallow checkout that only checks out the revision triggering the workflow. This causes setuptools-scm to miss the most recent tag, causing the version to be detected as `0.1`.
This commit is contained in:
Zsolt Dollenstein 2023-03-08 21:45:47 +00:00
parent 5ccba6b0d3
commit 1995e70c5e
No known key found for this signature in database
GPG key ID: 09F75E762C27AAD9
2 changed files with 4 additions and 0 deletions

View file

@ -40,6 +40,8 @@ jobs:
CIBW_BUILD_VERBOSITY: 1
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
if: ${{ !contains(matrix.os, 'self-hosted') }}
with:

View file

@ -18,6 +18,8 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download binary wheels
id: download
uses: actions/download-artifact@v3