From 7fbd464150de738404332f17a577b0888c008b8b Mon Sep 17 00:00:00 2001 From: milzi234 Date: Tue, 3 Dec 2024 12:16:30 +0100 Subject: [PATCH] untar the html docs before syncing them to web1. Remove tar.bz2 of documentation sites --- .github/workflows/documentation.yml | 9 +++------ tasks.py | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index afe1d90e74ab..c1d14ab6d66c 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -245,8 +245,7 @@ jobs: - name: Publish Auth docs run: | mkdir -p ./docs/_build - cp artifacts/authoritative-html-docs-${{needs.build-docs.outputs.pdns_version}}/auth-html-docs.tar ./docs/_build/ - bzip2 ./docs/_build/auth-html-docs.tar + tar -xf artifacts/authoritative-html-docs-${{needs.build-docs.outputs.pdns_version}}/auth-html-docs.tar -C ./docs/_build/ inv ci-docs-upload-master --docs-host="${DOCS_HOST}" --pdf="PowerDNS-Authoritative.pdf" --username="docs_powerdns_com" --product="auth" --directory="/${AUTH_DOCS_DIR}/" env: DOCS_HOST: ${{vars.DOCS_HOST}} @@ -254,8 +253,7 @@ jobs: - name: Publish Recursor docs run: | mkdir -p ./pdns/recursordist/docs/_build - cp artifacts/recursor-html-docs-${{needs.build-docs.outputs.pdns_version}}/rec-html-docs.tar ./pdns/recursordist/docs/_build/ - bzip2 ./pdns/recursordist/docs/_build/rec-html-docs.tar + tar -xf artifacts/recursor-html-docs-${{needs.build-docs.outputs.pdns_version}}/rec-html-docs.tar -C ./pdns/recursordist/docs/_build/ inv ci-docs-upload-master --docs-host="${DOCS_HOST}" --pdf="PowerDNS-Recursor.pdf" --username="docs_powerdns_com" --product="rec" --directory="/${REC_DOCS_DIR}/" env: DOCS_HOST: ${{vars.DOCS_HOST}} @@ -263,8 +261,7 @@ jobs: - name: Publish DNSdist docs run: | mkdir -p ./pdns/dnsdistdist/docs/_build - cp artifacts/dnsdist-html-docs-${{needs.build-docs.outputs.pdns_version}}/dnsdist-html-docs.tar ./pdns/dnsdistdist/docs/_build/ - bzip2 ./pdns/dnsdistdist/docs/_build/dnsdist-html-docs.tar + tar -xf artifacts/dnsdist-html-docs-${{needs.build-docs.outputs.pdns_version}}/dnsdist-html-docs.tar -C ./pdns/dnsdistdist/docs/_build/ inv ci-docs-upload-master --docs-host="${DOCS_HOST}" --pdf="dnsdist.pdf" --username="dnsdist_org" --product="dnsdist" env: DOCS_HOST: ${{vars.DOCS_HOST}} diff --git a/tasks.py b/tasks.py index 5a0d53101fb2..849db035cdc2 100644 --- a/tasks.py +++ b/tasks.py @@ -379,7 +379,6 @@ def ci_docs_upload_master(c, docs_host, pdf, username, product, directory=""): "--exclude '*~'", ]) c.run(f"{rsync_cmd} --delete ./docs/_build/{product}-html-docs/ {username}@{docs_host}:{directory}") - c.run(f"{rsync_cmd} ./docs/_build/{product}-html-docs.tar.bz2 {username}@{docs_host}:{directory}/html-docs.tar.bz2") c.run(f"{rsync_cmd} ./docs/_build/latex/{pdf} {username}@{docs_host}:{directory}") @task