Skip to content

Commit

Permalink
Upgrade artifact action (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer authored Jun 8, 2024
2 parents e206b23 + d8b36da commit 1eed1c2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/python-distributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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/*
Expand All @@ -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

0 comments on commit 1eed1c2

Please sign in to comment.