Skip to content

Commit

Permalink
Update handling of artifacts in python-package.yml (#649)
Browse files Browse the repository at this point in the history
This will allow us to start making releases again.
  • Loading branch information
wbarnha authored Nov 21, 2024
1 parent 8eb5cd7 commit af0ed79
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ env:
PIP_DISABLE_PIP_VERSION_CHECK: '1'
PIP_NO_PYTHON_VERSION_WARNING: '1'
PYTHON_LATEST: '3.13'

# For re-actors/checkout-python-sdist
sdist-artifact: python-package-distributions
jobs:
lint:
name: Check linting
Expand Down Expand Up @@ -98,8 +95,9 @@ jobs:
fetch-depth: 0
- name: Build wheels
uses: pypa/[email protected]
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheel-artifacts
path: ./wheelhouse/*.whl
build_sdist:
name: 📦 Build the source distribution
Expand All @@ -116,9 +114,10 @@ jobs:
run: >
pip3 install pkgconfig cython --upgrade &&
python3 setup.py sdist
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
name: Upload build artifacts
with:
name: sdist-artifact
path: dist/*.tar.gz
publish:
name: 📦 Publish to PyPI
Expand All @@ -132,8 +131,13 @@ jobs:
- name: Download the sdist artifact
uses: actions/[email protected]
with:
name: artifact
name: sdist-artifact
path: dist
- name: Download the wheel artifact
uses: actions/[email protected]
with:
pattern: "*artifact*"
merge-multiple: true
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit af0ed79

Please sign in to comment.