mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Pyrofork: workflows: build main branch docs only on new tags
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
53562e4354
commit
b06da1ecdc
2 changed files with 4 additions and 2 deletions
3
.github/workflows/build-docs.yml
vendored
3
.github/workflows/build-docs.yml
vendored
|
|
@ -2,8 +2,9 @@ name: Build-docs
|
|||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
branches:
|
||||
- main
|
||||
- staging
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@ cd ../..
|
|||
"$VENV"/bin/sphinx-build -b html "docs/source" "docs/build/html" -j auto
|
||||
git clone https://wulan17:"$DOCS_KEY"@github.com/Mayuri-Chan/pyrofork-docs.git
|
||||
cd pyrofork-docs
|
||||
if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
|
||||
refs=$(echo "$GITHUB_REF" | cut -d '/' -f "1 2")
|
||||
if [[ "$refs" == "refs/tags" ]]; then
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue