8000 Add upload of rc source code to download.pytorch.org by zklaus · Pull Request #151882 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

Add upload of rc source code to download.pytorch.org #151882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .circleci/scripts/binary_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ case "${PACKAGE_TYPE}" in
s3_upload "zip" "libtorch"
BACKUP_DIR="libtorch/${UPLOAD_CHANNEL}/${UPLOAD_SUBFOLDER}"
;;
source)
s3_upload "tar.gz" "src"
BACKUP_DIR="src/${UPLOAD_CHANNEL}/${UPLOAD_SUBFOLDER}"
;;
# wheel can either refer to wheel/manywheel
*wheel)
s3_upload "whl" "whl"
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,24 @@ jobs:
if-no-files-found: warn
path: ${{ needs.release.outputs.pt_release_name }}

publish_rc_source: # Uploading
if: ${{ github.repository == 'pytorch/pytorch' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, 'rc') }}
permissions:
id-token: write
contents: read
needs: release
with:
PYTORCH_ROOT: /pytorch
PACKAGE_TYPE: source
# TODO: This is a legacy variable that we eventually want to get rid of in
# favor of GPU_ARCH_VERSION
DESIRED_CUDA: ""
GPU_ARCH_TYPE: ""
build_name: ${{ needs.release.outputs.pt_release_name }}
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
uses: ./.github/workflows/_binary-upload.yml

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name }}
cancel-in-progress: true
Loading
0