diff --git a/.github/workflows/python-distributions.yml b/.github/workflows/python-distributions.yml index a33d273db..7cf982eca 100644 --- a/.github/workflows/python-distributions.yml +++ b/.github/workflows/python-distributions.yml @@ -38,8 +38,9 @@ jobs: - name: Build wheels run: python -m cibuildwheel --output-dir wheelhouse - name: Upload wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: artifact-${{ matrix.os }} path: ./wheelhouse/*.whl build-sdist: @@ -54,8 +55,9 @@ jobs: - name: Build sdist run: python -m build --sdist - name: Upload sdist - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: artifact-source path: ./dist/*.tar.gz test-sdist: @@ -69,9 +71,9 @@ jobs: python -m pip install --upgrade pip pip install twine - name: Download sdist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: - name: artifact + name: artifact-source path: dist - name: Test sdist run: twine check dist/* @@ -91,9 +93,10 @@ jobs: url: https://pypi.org/p/dulwich steps: - name: Download distributions - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: - name: artifact + merge-multiple: true + pattern: artifact-* path: dist - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1