Skip to content

Commit

Permalink
ci: support artifact v4 (#438)
Browse files Browse the repository at this point in the history
* ci: support artifact v4

Signed-off-by: Henry Schreiner <[email protected]>

* Update .github/workflows/build.yml

---------

Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Dec 15, 2023
1 parent adbc86e commit 83a0f29
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
with:
name: Wheel-${{ matrix.os }}-${{ matrix.build }}${{ matrix.arch }}
path: ./wheelhouse/*.whl

build_manylinux2010_wheels:
Expand Down Expand Up @@ -145,6 +146,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: Wheel-manylinux2010-${{ matrix.arch }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -161,6 +163,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: SDist
path: dist/*.tar.gz

test_sdist:
Expand Down Expand Up @@ -199,7 +202,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: artifact
name: SDist
path: dist

- name: Install SDist
Expand All @@ -219,10 +222,9 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
path: all

- run: pipx run twine check --strict dist/*
- run: pipx run twine check --strict all/*/*

upload_pypi:
name: Upload to PyPI
Expand All @@ -237,7 +239,11 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
path: all

- name: Merge files
run: |
mkdir dist
mv all/*/* dist/.
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 83a0f29

Please sign in to comment.