mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
[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:
parent
5ccba6b0d3
commit
1995e70c5e
2 changed files with 4 additions and 0 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
2
.github/workflows/pypi_upload.yml
vendored
2
.github/workflows/pypi_upload.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue