This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new a2996e0 update manual-deploy-website.yml to support branch
a2996e0 is described below
commit a2996e045c72bf806c638f5f9ac3dad10dd5d613
Author: morningman <[email protected]>
AuthorDate: Tue Jan 11 12:41:19 2022 +0800
update manual-deploy-website.yml to support branch
---
.github/workflows/manual-deploy-website.yml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/manual-deploy-website.yml
b/.github/workflows/manual-deploy-website.yml
index aaf4c7e..8d3d82b 100644
--- a/.github/workflows/manual-deploy-website.yml
+++ b/.github/workflows/manual-deploy-website.yml
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]