ci: Don't rely on foreign branches for docs preview
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2499>
This commit is contained in:
parent
3263a6a3c3
commit
4029abb9ca
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue