Skip to content

Commit

Permalink
MNT: upgrade upload/download-artifact GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored and benjaminrose committed Jan 30, 2024
1 parent d69791b commit 5b58453
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/upload_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
continue-on-error: true
uses: pypa/cibuildwheel@v2.1.1

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -48,20 +49,26 @@ jobs:
- name: Build sdist
run: python -m build --sdist

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

upload_pypi:
name: Upload to PyPI
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: artifact
name: sdist
path: dist

- uses: actions/download-artifact@v4
with:
path: dist
pattern: wheels-*

- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
Expand Down

0 comments on commit 5b58453

Please sign in to comment.