Skip to content

Commit

Permalink
CI: fix artifacts up- and download
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Jan 29, 2025
1 parent 629c573 commit f81485a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ jobs:
- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist
output-dir: dist-wheel-${{ matrix.os }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.whl
name: dist-wheel-${{ matrix.os }}
path: ./dist-wheel-${{ matrix.os }}/*.whl

build_sdist:
name: sdist on ${{ matrix.os }} with py ${{ matrix.ver.py }} numpy${{ matrix.ver.np }} scipy${{ matrix.ver.sp }}
Expand Down Expand Up @@ -135,21 +136,23 @@ jobs:
- name: Build sdist
run: |
# PEP 517 package builder from pypa
python -m build --sdist --outdir dist .
python -m build --sdist --outdir dist-sdist .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest' && matrix.ver.py == '3.11'
with:
path: dist/*.tar.gz
name: dist-sdist
path: dist-sdist/*.tar.gz

upload_to_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: dist-*
merge-multiple: true
path: dist

- name: Publish to Test PyPI
Expand Down

0 comments on commit f81485a

Please sign in to comment.