Skip to content

Commit

Permalink
No env variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
adalisk-emikhaylov committed Dec 9, 2024
1 parent 12a85a9 commit 903c60b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pip-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 903c60b

Please sign in to comment.