Skip to content

Commit e4de2b9

Browse files
authored
Merge pull request #418 from leofang/fix_release_wf
CI: Fix release workflow
2 parents bc3613e + 18c2703 commit e4de2b9

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/build-docs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ on:
2121
required: false
2222
default: ""
2323
type: string
24+
run-id:
25+
description: "The GHA run ID that generated validated artifacts"
26+
required: false
27+
default: ${{ github.run_id }}
28+
type: string
2429
is-release:
2530
description: "Are we building release docs?"
2631
required: false
@@ -95,6 +100,7 @@ jobs:
95100
with:
96101
name: cuda-python-wheel
97102
path: .
103+
run-id: ${{ inputs.run-id }}
98104

99105
- name: Display structure of downloaded cuda-python artifacts
100106
run: |
@@ -106,6 +112,7 @@ jobs:
106112
with:
107113
name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }}
108114
path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
115+
run-id: ${{ inputs.run-id }}
109116

110117
- name: Display structure of downloaded cuda.bindings artifacts
111118
run: |
@@ -117,6 +124,7 @@ jobs:
117124
with:
118125
name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}
119126
path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
127+
run-id: ${{ inputs.run-id }}
120128

121129
- name: Display structure of downloaded cuda.core build artifacts
122130
run: |

.github/workflows/release-upload.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ inputs.git-tag }}
3030
steps:
3131
- name: Checkout Source
32-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
ref: ${{ inputs.git-tag }}
3336

3437
- name: Create Release Directory
3538
run: mkdir -p release

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ on:
3232
options:
3333
- testpypi
3434
- pypi
35-
#print_tags:
36-
# description: 'True to print to STDOUT'
37-
# required: true
38-
# type: boolean
3935

4036
defaults:
4137
run:
@@ -92,6 +88,7 @@ jobs:
9288
build-ctk-ver: ${{ inputs.build-ctk-ver }}
9389
component: ${{ inputs.component }}
9490
git-tag: ${{ inputs.git-tag }}
91+
run-id: ${{ inputs.run-id }}
9592
is-release: true
9693

9794
upload-archive:

0 commit comments

Comments
 (0)