File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ case "${PACKAGE_TYPE}" in
78
78
s3_upload " zip" " libtorch"
79
79
BACKUP_DIR=" libtorch/${UPLOAD_CHANNEL} /${UPLOAD_SUBFOLDER} "
80
80
;;
81
+ source)
82
+ s3_upload " tar.gz" " src"
83
+ BACKUP_DIR=" src/${UPLOAD_CHANNEL} /${UPLOAD_SUBFOLDER} "
84
+ ;;
81
85
# wheel can either refer to wheel/manywheel
82
86
* wheel)
83
87
s3_upload " whl" " whl"
Original file line number Diff line number Diff line change @@ -108,6 +108,24 @@ jobs:
108
108
if-no-files-found : warn
109
109
path : ${{ needs.release.outputs.pt_release_name }}
110
110
111
+ publish_rc_source : # Uploading
112
+ if : ${{ github.repository_owner == 'pytorch' }}
113
+ permissions :
114
+ id-token : write
115
+ contents : read
116
+ needs : release
117
+ with :
118
+ PYTORCH_ROOT : /pytorch
119
+ PACKAGE_TYPE : source
120
+ # TODO: This is a legacy variable that we eventually want to get rid of in
121
+ # favor of GPU_ARCH_VERSION
122
+ DESIRED_CUDA : " "
123
+ GPU_ARCH_TYPE : " "
124
+ build_name : ${{ needs.release.outputs.pt_release_name }}
125
+ secrets :
126
+ github-token : ${{ secrets.GITHUB_TOKEN }}
127
+ uses : ./.github/workflows/_binary-upload.yml
128
+
111
129
concurrency :
112
130
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name }}
113
131
cancel-in-progress : true
You can’t perform that action at this time.
0 commit comments