From 6560a412d4eaafcfede6cbb50ab48c5dd32aecd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Steinbei=C3=9F?= Date: Tue, 19 Jan 2021 10:45:19 +0100 Subject: Export apidocs as GitLab artifacts The static index.html page and artifacts get merged into the newly added apidocs folder. --- ci/build_libs.sh | 8 ++++++++ ci/build_project.yml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'ci') diff --git a/ci/build_libs.sh b/ci/build_libs.sh index 1bb46c2..59bef9b 100644 --- a/ci/build_libs.sh +++ b/ci/build_libs.sh @@ -41,6 +41,14 @@ for URL in ${REPOS}; do make -j${NPROC:-$(nproc)} make install echo "$(pwd): $(git describe)" >> /tmp/xfce_build_version_info.txt + # Retain HTML docs in /docs + if [[ -d "$(pwd)/docs" ]]; then + HTMLPATH=$(find "$(pwd)/docs" -name html) + if [[ ! -z "$HTMLPATH" ]]; then + mkdir -p "/docs/$NAME" + cp -a "$HTMLPATH/." "/docs/$NAME" + fi + fi done # cleanup diff --git a/ci/build_project.yml b/ci/build_project.yml index 42a890d..c077c4e 100644 --- a/ci/build_project.yml +++ b/ci/build_project.yml @@ -37,11 +37,11 @@ distcheck: rules: # If there are changes to .po, never run. We also check # BEFORE_SHA to see if it is zeros, in which case we are - # running on a manual trigger or scheduled pipeline. In + # running on a manual trigger or scheduled pipeline. In # that case, changes resolves to true so we need to check # both. - if: '$CI_COMMIT_BEFORE_SHA != "0000000000000000000000000000000000000000"' - changes: + changes: - "po/*.po" when: never # Otherwise, always run @@ -50,7 +50,7 @@ distcheck: .translation: rules: # If there are changes to .po, run this job - - changes: + - changes: - "po/*.po" when: always # Otherwise, never run -- cgit v1.2.1