Merge pull request #651 from kiwix/no_publish_of_pr_deps

Publish projects deps in branch-named folder when outside of main
This commit is contained in:
Matthieu Gautier 2023-11-08 13:14:09 +01:00 committed by GitHub
commit 2f6663a84c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -6,13 +6,17 @@ from common import (
run_kiwix_build,
make_deps_archive,
upload,
OS_NAME,
PLATFORM_TARGET,
DEV_BRANCH,
)
from build_definition import select_build_targets, DEPS
for target in select_build_targets(DEPS):
run_kiwix_build(target, platform=PLATFORM_TARGET, build_deps_only=True)
archive_file = make_deps_archive(target=target)
upload(archive_file, "ci@tmp.kiwix.org:30022", "/data/tmp/ci")
if DEV_BRANCH:
destination = "/data/tmp/ci/dev_preview/" + DEV_BRANCH
else:
destination = "/data/tmp/ci"
upload(archive_file, "ci@tmp.kiwix.org:30022", destination)
os.remove(str(archive_file))