Skip to content

workflows/release-binaries: Fix automatic upload #107315

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

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Conversation

tstellar
Copy link
Collaborator

@tstellar tstellar commented Sep 4, 2024

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Sep 4, 2024

@llvm/pr-subscribers-github-workflow

Author: Tom Stellard (tstellar)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/107315.diff

1 Files Affected:

  • (modified) .github/workflows/release-binaries.yml (+13-2)
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 672dd7517d23ce..197c08e26b132b 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -442,11 +442,22 @@ jobs:
         name: ${{ needs.prepare.outputs.release-binary-filename }}-attestation
         path: ${{ needs.prepare.outputs.release-binary-filename }}.jsonl
 
+    - name: Checkout Release Scripts
+      uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
+      with:
+        sparse-checkout: |
+          llvm/utils/release/github-upload-release.py
+          llvm/utils/git/requirements.txt
+        sparse-checkout-cone-mode: false
+
+    - name: Install Python Requirements
+      run: |
+        pip install --require-hashes -r ./llvm/utils/git/requirements.txt
+
     - name: Upload Release
       shell: bash
       run: |
-        sudo apt install python3-github
-        ./llvm-project/llvm/utils/release/github-upload-release.py \
+        llvm/utils/release/github-upload-release.py \
         --token ${{ github.token }} \
         --release ${{ needs.prepare.outputs.release-version }} \
         upload \

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@tstellar tstellar added this to the LLVM 19.X Release milestone Sep 12, 2024
@tstellar tstellar merged commit ab96409 into llvm:main Sep 12, 2024
35 of 39 checks passed
@tstellar
Copy link
Collaborator Author

/cherry-pick ab96409

llvmbot pushed a commit to llvmbot/llvm-project that referenced this pull request Sep 12, 2024
@llvmbot
Copy link
Member

llvmbot commented Sep 12, 2024

/pull-request #108422

tru pushed a commit to llvmbot/llvm-project that referenced this pull request Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

4 participants