File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 36
36
description : The comma-separated list of CUDA arch to be uploaded to pypi
37
37
default : ' '
38
38
type : string
39
+ wheel-upload-path :
40
+ description : Custom wheel upload path
41
+ required : false
42
+ type : string
43
+ default : ' '
39
44
secrets :
40
45
PYPI_API_TOKEN :
41
46
description : An optional token to upload to pypi
99
104
- name : Upload package to pytorch.org
100
105
shell : bash
101
106
working-directory : ${{ inputs.repository }}
107
+ env :
108
+ WHEEL_UPLOAD_PATH : ${{ inputs.wheel-upload-path }}
102
109
run : |
103
110
set -ex
104
111
@@ -112,6 +119,11 @@ jobs:
112
119
AWS_CMD="aws s3 cp"
113
120
fi
114
121
122
+ # set path to specific wheel-upload-path
123
+ if [[ -n "$WHEEL_UPLOAD_PATH" ]]; then
124
+ PYTORCH_S3_BUCKET_PATH="s3://pytorch/${WHEEL_UPLOAD_PATH}"
125
+ fi
126
+
115
127
for pkg in dist/*; do
116
128
shm_id=$(sha256sum "${pkg}" | awk '{print $1}')
117
129
${AWS_CMD} "$pkg" "${PYTORCH_S3_BUCKET_PATH}" --acl public-read \
Original file line number Diff line number Diff line change 88
88
required : false
89
89
default : " python -m build --wheel"
90
90
type : string
91
+ wheel-upload-path :
92
+ description : Custom wheel upload path
93
+ required : false
94
+ type : string
91
95
pip-install-torch-extra-args :
92
96
# NOTE: Why does this exist?
93
97
# Well setuptools / python packaging doesn't actually allow you to specify dependencies
@@ -325,6 +329,7 @@ jobs:
325
329
architecture : ${{ inputs.architecture }}
326
330
trigger-event : ${{ inputs.trigger-event }}
327
331
upload-to-pypi : ${{ inputs.upload-to-pypi }}
332
+ wheel-upload-path : ${{ inputs.wheel-upload-path }}
328
333
secrets :
329
334
PYPI_API_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
330
335
Original file line number Diff line number Diff line change 45
45
package-name : ${{ matrix.package-name }}
46
46
trigger-event : " ${{ github.event_name }}"
47
47
build-platform : python-build-package
48
+ wheel-upload-path : " test/custom/path/"
48
49
pip-install-torch-extra-args :
49
50
torchvision
50
51
torchao
You can’t perform that action at this time.
0 commit comments