Merge pull request #3415 from fonttools/fix-upload-artifacts

[CI] adapt to new upload/download-artifact changes
This commit is contained in:
Cosimo Lupo 2024-01-15 15:47:49 +00:00 committed by GitHub
commit 7572a67146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,9 @@ jobs:
- name: Build source distribution and pure-python wheel
run: |
python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pure
path: |
dist/*.whl
dist/*.tar.gz
@ -70,8 +71,9 @@ jobs:
env:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_ARCHS: ${{ matrix.arch }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*.whl
build_arch_wheels:
@ -96,8 +98,9 @@ jobs:
env:
CIBW_BUILD: cp${{ matrix.python }}-*
CIBW_ARCHS: ${{ matrix.arch }}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: aarch64-wheels
path: wheelhouse/*.whl
deploy:
@ -110,9 +113,10 @@ jobs:
# only run if the commit is tagged...
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
# so that all artifacts are downloaded in the same directory specified by 'path'
merge-multiple: true
path: dist
- uses: pypa/gh-action-pypi-publish@v1.8.11
with: