File tree Expand file tree Collapse file tree
.github/actions/project/docs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 139139 }
140140 ]
141141 },
142- "generated_at" : " 2026-05-29T02:48:07Z "
142+ "generated_at" : " 2026-05-29T03:01:36Z "
143143}
Original file line number Diff line number Diff line change @@ -135,6 +135,16 @@ runs:
135135 echo "[INFO] Setting default version to latest..."
136136 hatch run mike set-default -F zensical.toml --push latest
137137 fi
138+ if [ "$BUILD_TYPE" = "main" ] || [ "$BUILD_TYPE" = "nightly" ]; then
139+ echo "[INFO] Cleaning up older versions of type: $BUILD_TYPE..."
140+ TO_DELETE=$(hatch run mike list -F zensical.toml | awk '{print $1}' | grep "^${BUILD_TYPE}-" | grep -v "^${VERSION_NAME}$" || true)
141+ if [ -n "$TO_DELETE" ]; then
142+ echo "[INFO] Deleting old versions: $TO_DELETE"
143+ hatch run mike delete -F zensical.toml --push $TO_DELETE
144+ else
145+ echo "[INFO] No old versions of type $BUILD_TYPE found to delete."
146+ fi
147+ fi
138148 - name : Compute documentation URL
139149 id : url-step
140150 if : steps.check.outputs.run == 'true'
You can’t perform that action at this time.
0 commit comments