diff --git a/.github/workflows/pip-build.yml b/.github/workflows/pip-build.yml index 07d7ecbc52cd..a2e14e331d34 100644 --- a/.github/workflows/pip-build.yml +++ b/.github/workflows/pip-build.yml @@ -10,8 +10,6 @@ env: CUDA-VERSION: '11.4.2.47141' CUDA-MAJOR: '11' CUDA-MINOR: '4' - # If this is false, will not deploy the artifacts. Also will respect the target commit instead of searching for the latest tagged commit. - DEPLOY: ${{ github.event_name == 'release' }} jobs: @@ -25,7 +23,7 @@ jobs: uses: actions/checkout@v4 - uses: actions-ecosystem/action-get-latest-tag@v1 - if: ${{ env.DEPLOY }} + if: ${{ github.event_name == 'release' }} id: get-latest-tag manylinux-pip-build: @@ -653,7 +651,7 @@ jobs: run: ${{ matrix.py-cmd }} -m pytest -s -v upload-to-release: - if: ${{ env.DEPLOY }} + if: ${{ github.event_name == 'release' }} needs: [manylinux-pip-test, windows-pip-test, macos-pip-test] timeout-minutes: 30 runs-on: ubuntu-latest @@ -683,7 +681,7 @@ jobs: run: twine upload ./meshlib-*.whl -u __token__ -p ${{ secrets.PYPI_MESHINSPECTOR_TOKEN }} --skip-existing post-release-test: - if: ${{ env.DEPLOY }} + if: ${{ github.event_name == 'release' }} needs: upload-to-release uses: MeshInspector/MeshLib/.github/workflows/release-tests.yml@master