Skip to content

Commit 5f6e22d

Browse files
authored
1 parent d2486f6 commit 5f6e22d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-m1-binaries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
name: torchvision-py${{ matrix.py_vers }}-macos11-m1
8080
path: dist/
8181
- name: Upload wheel to S3
82-
if: ${{ github.event_name == 'push' && (steps.extract_branch.outputs.branch == 'nightly' || startsWith(github.event.ref, 'refs/tags/')) }}
82+
if: ${{ github.event_name == 'push' && (github.event.ref == 'ref/heads/nightly' || startsWith(github.event.ref, 'refs/tags/')) }}
8383
shell: arch -arch arm64 bash {0}
8484
env:
8585
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
@@ -139,7 +139,7 @@ jobs:
139139
name: torchvision-py${{ matrix.py_vers }}-macos11-m1-conda
140140
path: dist/
141141
- name: Upload package to conda
142-
if: ${{ github.event_name == 'push' && steps.extract_branch.outputs.branch == 'nightly' }}
142+
if: ${{ github.event_name == 'push' && (github.event.ref == 'ref/heads/nightly' || startsWith(github.event.ref, 'refs/tags/')) }}
143143
shell: arch -arch arm64 bash {0}
144144
env:
145145
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}

0 commit comments

Comments
 (0)