From 8eba37bf3db9694927c82bd4941a1de300e7c95d Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sat, 30 Dec 2023 22:01:16 +0700 Subject: [PATCH] Pyrofork: docs: only copy main branch docs to main directory Signed-off-by: wulan17 --- build-docs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-docs.sh b/build-docs.sh index a3a628e3e..d54464ae7 100644 --- a/build-docs.sh +++ b/build-docs.sh @@ -13,10 +13,10 @@ cd ../.. git clone https://wulan17:"$DOCS_KEY"@github.com/Mayuri-Chan/pyrofork-docs.git cd pyrofork-docs if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then - rm -rf _includes api genindex.html intro py-modindex.html sitemap.xml support.html topics _static faq index.html objects.inv searchindex.js start telegram main + mkdir -p main + cd main + rm -rf _includes api genindex.html intro py-modindex.html sitemap.xml support.html topics _static faq index.html objects.inv searchindex.js start telegram cp -r ../docs/build/html/* . - mkdir main - cp -r ../docs/build/html/* main/ else mkdir -p staging cd staging