Make nigthly CD build and publish only "publishable" project.

There is no reason to publish nightly for all project we try to build
in the CI.

We should publish nigthly for same project that we do for releases.
(Minus the filter of what have changed since last release)

Fix #743
This commit is contained in:
Matthieu Gautier 2024-08-30 16:33:38 +02:00
parent b0a610ffec
commit c716617bbd
1 changed files with 6 additions and 7 deletions

View File

@ -21,16 +21,15 @@ from common import (
from build_definition import select_build_targets, BUILD, PUBLISH, SOURCE_PUBLISH from build_definition import select_build_targets, BUILD, PUBLISH, SOURCE_PUBLISH
# Filter what to build if we are doing a release.
if MAKE_RELEASE:
TARGETS = select_build_targets(PUBLISH)
def release_filter(project): def release_filter(project):
return release_versions.get(project) is not None return release_versions.get(project) is not None
# Filter what to build if we are doing a release.
TARGETS = select_build_targets(PUBLISH)
if MAKE_RELEASE:
TARGETS = tuple(filter(release_filter, TARGETS)) TARGETS = tuple(filter(release_filter, TARGETS))
else:
TARGETS = select_build_targets(BUILD)
for target in TARGETS: for target in TARGETS:
run_kiwix_build(target, config=COMPILE_CONFIG, make_release=MAKE_RELEASE) run_kiwix_build(target, config=COMPILE_CONFIG, make_release=MAKE_RELEASE)