Skip to content

Commit

Permalink
Pyrofork: docs: only copy main branch docs to main directory
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed Dec 30, 2023
1 parent 08283fe commit 8eba37b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8eba37b

Please sign in to comment.