Skip to content

Commit

Permalink
Fix nightly publishing logic (pytorch#2008)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#2008

Fix nightly publishing logic. Currently it attempts to publish all versions when for the scheduled run.
https://github.com/pytorch/FBGEMM/actions/runs/6121960197/job/16617350408

Reviewed By: q10

Differential Revision: D49117790

fbshipit-source-id: 78a10703cba494d2691b43e3223e94ba3ac99989
  • Loading branch information
spcyppt authored and facebook-github-bot committed Sep 9, 2023
1 parent b5bc229 commit 9c8f89e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/fbgemm_gpu_cuda_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
run: . $PRELUDE; cd fbgemm_gpu/test; run_fbgemm_gpu_tests $BUILD_ENV

- name: Push FBGEMM_GPU Nightly Binary to PYPI
if: ${{ github.event_name == 'schedule' && matrix.cuda-version == matrix.cuda-version-publish || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to_pypi == 'true' && matrix.cuda-version == matrix.cuda-version-publish) }}
if: ${{ (github.event_name == 'schedule' && matrix.cuda-version == matrix.cuda-version-publish) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_to_pypi == 'true' && matrix.cuda-version == matrix.cuda-version-publish) }}
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: . $PRELUDE; publish_to_pypi $BUILD_ENV fbgemm_gpu_nightly-*.whl "$PYPI_TOKEN"

0 comments on commit 9c8f89e

Please sign in to comment.