Skip to content

Commit

Permalink
修改 baidupush CI
Browse files Browse the repository at this point in the history
  • Loading branch information
beiklive committed May 16, 2024
1 parent 489bd92 commit 91729e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/baiduPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 91729e1

Please sign in to comment.