[CI] adapt to new upload/download-artifact changes
https://github.com/actions/upload-artifact?tab=readme-ov-file#breaking-changes > Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you will encounter an error. This caused the PyPI upload job to fail earlier. Hopefully this should fix it.
This commit is contained in:
parent
182b77773d
commit
a211ac9794
6
.github/workflows/wheels.yml
vendored
6
.github/workflows/wheels.yml
vendored
@ -34,6 +34,7 @@ jobs:
|
|||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: pure
|
||||||
path: |
|
path: |
|
||||||
dist/*.whl
|
dist/*.whl
|
||||||
dist/*.tar.gz
|
dist/*.tar.gz
|
||||||
@ -72,6 +73,7 @@ jobs:
|
|||||||
CIBW_ARCHS: ${{ matrix.arch }}
|
CIBW_ARCHS: ${{ matrix.arch }}
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: wheels
|
||||||
path: wheelhouse/*.whl
|
path: wheelhouse/*.whl
|
||||||
|
|
||||||
build_arch_wheels:
|
build_arch_wheels:
|
||||||
@ -98,6 +100,7 @@ jobs:
|
|||||||
CIBW_ARCHS: ${{ matrix.arch }}
|
CIBW_ARCHS: ${{ matrix.arch }}
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: aarch64-wheels
|
||||||
path: wheelhouse/*.whl
|
path: wheelhouse/*.whl
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
@ -112,7 +115,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact
|
# so that all artifacts are downloaded in the same directory specified by 'path'
|
||||||
|
merge-multiple: true
|
||||||
path: dist
|
path: dist
|
||||||
- uses: pypa/gh-action-pypi-publish@v1.8.11
|
- uses: pypa/gh-action-pypi-publish@v1.8.11
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user