Unverified Commit 6545b084 authored by Wenhao Xie's avatar Wenhao Xie Committed by GitHub
Browse files

[CI] fix docs ci (#720)

parent f5fca05b
...@@ -27,11 +27,10 @@ jobs: ...@@ -27,11 +27,10 @@ jobs:
TARGET_REPO: ${{ secrets.TARGET_REPO }} TARGET_REPO: ${{ secrets.TARGET_REPO }}
TARGET_TOKEN: ${{ secrets.TARGET_TOKEN }} TARGET_TOKEN: ${{ secrets.TARGET_TOKEN }}
run: | run: |
git clone https://github.com/${TARGET_REPO}.git -b main target_repo
cd target_repo
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.email "github-actions[bot]@users.noreply.github.com"
git clone https://github.com/${TARGET_REPO}.git target_repo
cd target_repo
git checkout main
find . -mindepth 1 -maxdepth 1 ! -name ".github" ! -name "." ! -name ".git" -exec rm -rf {} + find . -mindepth 1 -maxdepth 1 ! -name ".github" ! -name "." ! -name ".git" -exec rm -rf {} +
cp -r ../docs/_build/html/* ./ cp -r ../docs/_build/html/* ./
git add . git add .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment