Skip to content
Permalink
Browse files
update manual-deploy-website.yml to support branch
  • Loading branch information
morningman-cmy committed Jan 11, 2022
1 parent fd53e5c commit a2996e045c72bf806c638f5f9ac3dad10dd5d613
Showing 1 changed file with 4 additions and 1 deletion.
@@ -27,7 +27,10 @@ jobs:
cp -R blogs/zh-CN/ incubator-doris/docs/zh-CN/article/articles/
cp -R blogs/en/ incubator-doris/docs/en/article/articles/
cp -R blogs/images/blogs/ incubator-doris/docs/.vuepress/public/images/
cd incubator-doris/docs
cd incubator-doris/
git fetch
git checkout -b ${{ github.event.inputs.branch }} remotes/origin/${{ github.event.inputs.branch }}
cd docs/
find ./ -name "*.md" -exec sed -i -e 's/!\[\(.*\)\][(]\(.*\)[)]/<img \:src=\"$withBase\('\''\2'\''\)\" alt=\"\1\">/g' {} \;
sed -i 's/en\///g' .vuepress/config.js
sed -i "s/BUILDING_BRANCH\.length > 0/BUILDING_BRANCH\.length > 0 \&\& BUILDING_BRANCH !== 'master'/g" .vuepress/config.js

0 comments on commit a2996e0

Please sign in to comment.