8000 Add upload of rc source code to download.pytorch.org · pytorch/pytorch@a17ed74 · GitHub
Skip to content

Commit a17ed74

Browse files
committed
Add upload of rc source code to download.pytorch.org
ghstack-source-id: d43dd15 Pull Request resolved: #151882
1 parent 01f1cc4 commit a17ed74

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.circleci/scripts/binary_upload.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ case "${PACKAGE_TYPE}" in
7878
s3_upload "zip" "libtorch"
7979
BACKUP_DIR="libtorch/${UPLOAD_CHANNEL}/${UPLOAD_SUBFOLDER}"
8080
;;
81+
source)
82+
s3_upload "tar.gz" "src"
83+
BACKUP_DIR="src/${UPLOAD_CHANNEL}/${UPLOAD_SUBFOLDER}"
84+
;;
8185
# wheel can either refer to wheel/manywheel
8286
*wheel)
8387
s3_upload "whl" "whl"

.github/workflows/create_release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@ jobs:
108108
if-no-files-found: warn
109109
path: ${{ needs.release.outputs.pt_release_name }}
110110

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+
111129
concurrency:
112130
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name }}
113131
cancel-in-progress: true

0 commit comments

Comments
 (0)
0