[release-monitoring] Build and install Anitya package before building documentation

Documentation build needs to have Anitya package already available. Move the
build and install it before building the documentation.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2022-09-27 11:39:07 +02:00
parent fba95afaa4
commit 9affa5f80a

View file

@ -57,6 +57,8 @@ items:
git checkout staging && \
poetry export -f requirements.txt --output requirements.txt --without-hashes && \
pip-3 install -r requirements.txt && \
poetry build && \
pip-3 install dist/*.whl && \
{% else %}
git checkout production && \
python3 setup.py install && \
@ -68,10 +70,7 @@ items:
mkdir -p ../anitya/static/docs/ && \
cp -r _build/html/* ../anitya/static/docs/ && \
popd && \
{% if env == 'staging' %}
poetry build && \
pip-3 install dist/*.whl && \
{% else %}
{% if env != 'staging' %}
python3 setup.py install && \
pip-3 install . && \
{% endif %}