Skip to content

Commit 12031a5

Browse files
committed
fix latest doc logic
1 parent 262484b commit 12031a5

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build-docs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ jobs:
153153
run: |
154154
pushd cuda_python/docs/
155155
./build_all_docs.sh $DOC_ACTION
156+
if [[ -z "$DOC_ACTION" ]]; then
157+
# At release time, we don't want to update the latest docs
158+
rm -rf build/html/latest
159+
fi
156160
ls -l build
157161
popd
158162
mv cuda_python/docs/build/html/* artifacts/docs/
@@ -165,8 +169,11 @@ jobs:
165169
COMPONENT=$(echo "${{ inputs.component }}" | tr '-' '_')
166170
pushd ${COMPONENT}/docs/
167171
./build_docs.sh $DOC_ACTION
172+
if [[ -z "$DOC_ACTION" ]]; then
173+
# At release time, we don't want to update the latest docs
174+
rm -rf build/html/latest
175+
fi
168176
ls -l build
169-
rm -rf build/html/latest
170177
popd
171178
mv ${COMPONENT}/docs/build/html/* artifacts/docs/
172179

0 commit comments

Comments
 (0)