From 91729e16759087e755ed14934ed56d356c69d228 Mon Sep 17 00:00:00 2001 From: beiklive <1376896787@qq.com> Date: Thu, 16 May 2024 13:17:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20baidupush=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/baiduPush.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/baiduPush.yml b/.github/workflows/baiduPush.yml index aa88f951..83e09bd5 100644 --- a/.github/workflows/baiduPush.yml +++ b/.github/workflows/baiduPush.yml @@ -37,14 +37,16 @@ jobs: run: | yarn yarn build - startpath="./beiklive/.vuepress/dist/" + startpath="./beiklive/.vuepress/dist" output_file="urls.txt" - base_url="http://doc.beiklive.top/" + base_url="http://doc.beiklive.top" > "$output_file" find "$startpath" -type f | while read -r file; do - relative_path="${file#$startpath/}" + relative_path="${file}" full_url="${base_url}${relative_path}" echo "$full_url" >> "$output_file" done + replace_str='' + sed -i "s|$startpath|$replace_str|g" "$output_file" cat "$output_file" curl -H 'Content-Type:text/plain' --data-binary @urls.txt "http://data.zz.baidu.com/urls?site=doc.beiklive.top&token=wrUX2ETDK1sgdhZA" \ No newline at end of file