Skip to content

Commit

Permalink
Upload nightly torch/torchvision wheels to our release page
Browse files Browse the repository at this point in the history
  • Loading branch information
mgehre-amd committed Sep 6, 2023
1 parent 82687dc commit 0757f48
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/buildRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ jobs:
with:
release_id: ${{ github.event.inputs.release_id }}
assets_path: ./build_tools/python_deploy/wheelhouse/torch*.whl

- name: Download nightly pytorch and torchvision
if: github.event.inputs.release_id != ''
run: |
pip download -r pytorch-requirements.txt -r torchvision-requirements.txt --no-deps --dest deps
- name: Upload nightly pytorch and torchvision into release
if: github.event.inputs.release_id != ''
id: upload-release-assets-nightly
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ github.event.inputs.release_id }}
assets_path: ./deps/*.whl

# Publishing is necessary to make the release visible to `pip`
# on the github releases page.
- name: Publish Release (if requested)
Expand Down
2 changes: 1 addition & 1 deletion pytorch-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
--pre
torch==2.1.0.dev20230612
torch==2.1.0.dev20230901
2 changes: 1 addition & 1 deletion torchvision-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
--pre
torchvision==0.16.0.dev20230612
torchvision==0.16.0.dev20230901

0 comments on commit 0757f48

Please sign in to comment.