[ci] Fix pypi_upload workflow (#889)

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-09 09:15:36 +00:00 committed by GitHub
parent 5ccba6b0d3
commit 577e5d5cd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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