diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 342ad82..3b07473 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: submodules: "recursive" - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -91,7 +91,7 @@ jobs: toolset: "14.2" - name: Build wheels - uses: pypa/cibuildwheel@v2.16 + uses: pypa/cibuildwheel@v2.19 env: CIBW_ARCHS_MACOS: "${{ matrix.macos_arch }}" # Python on Linux is usually configured to add debug information, @@ -99,8 +99,9 @@ jobs: # distribute. CIBW_ENVIRONMENT_LINUX: "LDFLAGS=-Wl,--strip-debug" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: artifact-wheels-${{ matrix.os }}${{ matrix.macos_arch }} path: ./wheelhouse/*.whl build_sdist: @@ -118,8 +119,9 @@ jobs: check-manifest python -m build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: artifact-sdist path: dist/*.tar.gz upload_pypi: @@ -134,17 +136,16 @@ jobs: contents: write # allows writing releases 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-* + merge-multiple: true path: dist - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - - uses: softprops/action-gh-release@v1 + - uses: softprops/action-gh-release@v2 with: generate_release_notes: true files: "./dist/*"