diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index aa69a75..ea95b81 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: tags: - 'v*' + pull_request: jobs: build_wheels: @@ -11,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, windows-2019, macOS-11] + os: [ubuntu-20.04, windows-2019, macos-13, macos-14] steps: - uses: actions/checkout@v4 @@ -33,7 +34,7 @@ jobs: # these shouldn't be needed CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux*" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./dist/*.whl name: wheels @@ -41,7 +42,7 @@ jobs: build_sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 with: fetch-depth: 0 fetch-tags: true @@ -49,7 +50,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: "3.12" - name: Build sdist run: | @@ -57,12 +58,13 @@ jobs: pip install -U build python -m build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./dist/*.tar.gz name: sdist pypi_upload: + if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest needs: - build_wheels