From 1fe17290e4da9e19ecbd4617d697fd5f7f130698 Mon Sep 17 00:00:00 2001 From: Roland Kaminski Date: Fri, 23 Aug 2024 11:05:08 +0200 Subject: [PATCH] fix artifact generation --- .github/trigger.sh | 4 ++-- .github/workflows/cibuildwheel.yml | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/trigger.sh b/.github/trigger.sh index 587ebf7c..c032ef98 100755 --- a/.github/trigger.sh +++ b/.github/trigger.sh @@ -95,9 +95,9 @@ case "$action" in dev) branch="${@:$OPTIND+1:1}" # .github/workflows/ppa-dev.yml - dispatch 4881510 "$wip" "$branch" + #dispatch 4881510 "$wip" "$branch" # .github/workflows/conda-dev.yml - dispatch 4923491 "$wip" "$branch" + #dispatch 4923491 "$wip" "$branch" # .github/workflows/cibuildwheel.yml dispatch 34889579 "$wip" "$branch" ;; diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 4a41dda0..2da6c429 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -28,8 +28,9 @@ jobs: - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: cibw-sdist path: dist/*.tar.gz build_wheels: @@ -110,16 +111,19 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl upload_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: cibw-* path: dist + merge-multiple: true + - uses: pypa/gh-action-pypi-publish@v1.5.0 if: ${{ github.event.inputs.wip == 'true' }}