Skip to content

Commit af0ed79

Browse files
authored
Update handling of artifacts in python-package.yml (#649)
This will allow us to start making releases again.
1 parent 8eb5cd7 commit af0ed79

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ env:
1313
PIP_DISABLE_PIP_VERSION_CHECK: '1'
1414
PIP_NO_PYTHON_VERSION_WARNING: '1'
1515
PYTHON_LATEST: '3.13'
16-
17-
# For re-actors/checkout-python-sdist
18-
sdist-artifact: python-package-distributions
1916
jobs:
2017
lint:
2118
name: Check linting
@@ -98,8 +95,9 @@ jobs:
9895
fetch-depth: 0
9996
- name: Build wheels
10097
uses: pypa/cibuildwheel@v2.10.1
101-
- uses: actions/upload-artifact@v3
98+
- uses: actions/upload-artifact@v4
10299
with:
100+
name: wheel-artifacts
103101
path: ./wheelhouse/*.whl
104102
build_sdist:
105103
name: 📦 Build the source distribution
@@ -116,9 +114,10 @@ jobs:
116114
run: >
117115
pip3 install pkgconfig cython --upgrade &&
118116
python3 setup.py sdist
119-
- uses: actions/upload-artifact@v3
117+
- uses: actions/upload-artifact@v4
120118
name: Upload build artifacts
121119
with:
120+
name: sdist-artifact
122121
path: dist/*.tar.gz
123122
publish:
124123
name: 📦 Publish to PyPI
@@ -132,8 +131,13 @@ jobs:
132131
- name: Download the sdist artifact
133132
uses: actions/download-artifact@v4.1.7
134133
with:
135-
name: artifact
134+
name: sdist-artifact
136135
path: dist
136+
- name: Download the wheel artifact
137+
uses: actions/download-artifact@v4.1.7
138+
with:
139+
pattern: "*artifact*"
140+
merge-multiple: true
137141
- name: Publish package to PyPI
138142
uses: pypa/gh-action-pypi-publish@release/v1
139143
with:

0 commit comments

Comments
 (0)