[llvm] workflows/release-binaries: Fix automatic upload (PR #107315)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 14:33:43 PDT 2024
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/107315
>From eadc0dd4144931865c979353a3e1be9b2c5b3e18 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 4 Sep 2024 14:29:39 -0700
Subject: [PATCH 1/2] workflows/release-binaries: Fix automatic upload
---
.github/workflows/release-binaries.yml | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
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 at 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 \
>From 04b90e1439834fd0667054903f65e2eed996b5f5 Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Wed, 4 Sep 2024 14:33:02 -0700
Subject: [PATCH 2/2] Fix path
---
.github/workflows/release-binaries.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index 197c08e26b132b..925912df6843e4 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -457,7 +457,7 @@ jobs:
- name: Upload Release
shell: bash
run: |
- llvm/utils/release/github-upload-release.py \
+ ./llvm/utils/release/github-upload-release.py \
--token ${{ github.token }} \
--release ${{ needs.prepare.outputs.release-version }} \
upload \
More information about the llvm-commits
mailing list