diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 93920665a..4e406314b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,44 +1,9 @@ --- name: Wheel Builds on: - push: - tags: - - '*' + pull_request: + branches: [ main, 'stable/*' ] jobs: - rustworkx-core: - name: Publish rustworkx-core - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - - name: Run cargo publish - run: | - cd rustworkx-core - cargo publish - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - sdist: - name: Build sdist - runs-on: ubuntu-latest - needs: ["build_wheels", "build-win32-wheels"] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - name: Install Python - with: - python-version: '3.8' - - name: Install deps - run: pip install -U twine setuptools-rust - - name: Build sdist - run: python setup.py sdist - - uses: actions/upload-artifact@v3 - with: - path: ./dist/* - - name: Upload to PyPI - run: twine upload ./dist/* - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build_wheels: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -62,11 +27,6 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build_wheels_aarch64: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -96,11 +56,6 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build_wheels_ppc64le: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -131,11 +86,6 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build_wheels_ppc64le_part2: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -166,11 +116,6 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build_wheels_s390x: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -202,11 +147,6 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build_wheels_s390x_part2: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} @@ -238,11 +178,6 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build-mac-arm-wheels: name: Build wheels on macos for arm and universal2 runs-on: macos-latest @@ -265,11 +200,6 @@ jobs: - name: Install twine run: | python -m pip install twine - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci build-win32-wheels: name: Build wheels on win32 runs-on: windows-latest @@ -296,11 +226,6 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Upload to PyPI - run: twine upload ./wheelhouse/*.whl - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci retworkx-compat-build: name: Build retworkx runs-on: ubuntu-latest @@ -320,8 +245,3 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./dist/* - - name: Upload to PyPI - run: twine upload ./dist/* - env: - TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - TWINE_USERNAME: retworkx-ci