ci: Don't rely on foreign branches for docs preview

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2499>
environments/review-docs-nodei-zb4y5a/deployments/18082
Georg Krause 2023-07-04 11:06:12 +02:00
rodzic 3263a6a3c3
commit 4029abb9ca
1 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -128,11 +128,8 @@ review_docs:
- mkdir docs-review
- cd docs
- apt-get update
- apt-get install -y graphviz git
- apt-get install -y graphviz
- poetry install
- git switch develop && git pull
- git switch stable && git pull
- git switch $CI_COMMIT_BRANCH && git pull
script:
- poetry run python3 -m sphinx . $BUILD_PATH
artifacts:
@ -381,9 +378,6 @@ build_docs:
- apt-get update
- apt-get install -y graphviz
- poetry install
- poetry run pip install --no-deps --editable ../api
- git branch stable --track origin/stable || true
- git branch develop --track origin/develop || true
script:
- ./build_docs.sh
artifacts: