Pyrofork: docs: only copy main branch docs to main directory

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-12-30 22:01:16 +07:00
parent 08283fe907
commit 835fb00e38
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -13,10 +13,10 @@ cd ../..
git clone https://wulan17:"$DOCS_KEY"@github.com/Mayuri-Chan/pyrofork-docs.git git clone https://wulan17:"$DOCS_KEY"@github.com/Mayuri-Chan/pyrofork-docs.git
cd pyrofork-docs cd pyrofork-docs
if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then 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
cp -r ../docs/build/html/* . cd main
mkdir 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/* main/ cp -r ../../docs/build/html/* .
else else
mkdir -p staging mkdir -p staging
cd staging cd staging