diff options
author | Simon Steinbeiß <ochosi@xfce.org> | 2021-01-19 10:45:19 +0100 |
---|---|---|
committer | Simon Steinbeiß <ochosi@xfce.org> | 2021-01-19 10:45:19 +0100 |
commit | 6560a412d4eaafcfede6cbb50ab48c5dd32aecd8 (patch) | |
tree | 39b469b7489ab9a7ae18a347fa70699360264c3a /ci | |
parent | 6f651e4a6b1e78d4745cba1b8bb193d73e38af2b (diff) | |
download | xfce4-dev-tools-6560a412d4eaafcfede6cbb50ab48c5dd32aecd8.tar.gz |
Export apidocs as GitLab artifacts
The static index.html page and artifacts get merged into the newly
added apidocs folder.
Diffstat (limited to 'ci')
-rw-r--r-- | ci/build_libs.sh | 8 | ||||
-rw-r--r-- | ci/build_project.yml | 6 |
2 files changed, 11 insertions, 3 deletions
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 |