diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 0f29b68f..1aac946a 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -24,8 +24,9 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.21.0 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: artifact-${{ matrix.os }} path: ./wheelhouse/*.whl build_sdist: @@ -40,8 +41,9 @@ jobs: - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: artifact-sdist path: dist/*.tar.gz upload_pypi: @@ -52,15 +54,17 @@ jobs: # alternatively, to publish when a GitHub Release is created, use the following rule: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - # unpacks default artifact into dist/ - # if `name: artifact` is omitted, the action will create extra parent dir - name: artifact + pattern: artifact-* path: dist + merge-multiple: true + + - name: Check dist + run: ls dist - uses: pypa/gh-action-pypi-publish@v1.5.0 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} - # To test: repository_url: https://test.pypi.org/legacy/ + To test: repository_url: https://test.pypi.org/legacy/