From: milzi234 Date: Tue, 3 Dec 2024 11:16:30 +0000 (+0100) Subject: untar the html docs before syncing them to web1. Remove tar.bz2 of documentation... X-Git-Tag: rec-5.2.0-rc1~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14919%2Fhead;p=thirdparty%2Fpdns.git untar the html docs before syncing them to web1. Remove tar.bz2 of documentation sites --- diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index afe1d90e74..c1d14ab6d6 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 5a0d53101f..849db035cd 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