From: milzi234 Date: Tue, 3 Dec 2024 12:39:06 +0000 (+0100) Subject: also add the PDFs to the websites X-Git-Tag: rec-5.2.0-rc1~15^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14921%2Fhead;p=thirdparty%2Fpdns.git also add the PDFs to the websites --- diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index c1d14ab6d6..470842faf6 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -197,6 +197,8 @@ jobs: tar -xf artifacts/recursor-html-docs-${{needs.build-docs.outputs.pdns_version}}/rec-html-docs.tar -C docs_site mv docs_site/auth-html-docs docs_site/authoritative mv docs_site/rec-html-docs docs_site/recursor + cp artifacts/PowerDNS-Authoritative-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Authoritative.pdf docs_site/authoritative/ + cp artifacts/PowerDNS-Recursor-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Recursor.pdf docs_site/recursor/ netlify deploy \ --dir ./docs_site \ --site $NETLIFY_SITE_ID_DOCS \ @@ -206,6 +208,7 @@ jobs: - name: Deploy DNSdist docs to Netlify run: | tar -xf artifacts/dnsdist-html-docs-${{needs.build-docs.outputs.pdns_version}}/dnsdist-html-docs.tar + cp artifacts/dnsdist-${{needs.build-docs.outputs.pdns_version}}.pdf/dnsdist.pdf dnsdist-html-docs/ netlify deploy \ --dir ./dnsdist-html-docs \ --site $NETLIFY_SITE_ID_DNSDIST \ @@ -246,6 +249,7 @@ jobs: run: | mkdir -p ./docs/_build tar -xf artifacts/authoritative-html-docs-${{needs.build-docs.outputs.pdns_version}}/auth-html-docs.tar -C ./docs/_build/ + cp artifacts/PowerDNS-Authoritative-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Authoritative.pdf ./docs/_build/auth-html-docs/ 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,6 +258,7 @@ jobs: run: | mkdir -p ./pdns/recursordist/docs/_build tar -xf artifacts/recursor-html-docs-${{needs.build-docs.outputs.pdns_version}}/rec-html-docs.tar -C ./pdns/recursordist/docs/_build/ + cp artifacts/PowerDNS-Recursor-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Recursor.pdf ./pdns/recursordist/docs/_build/rec-html-docs/ 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}} @@ -262,6 +267,7 @@ jobs: run: | mkdir -p ./pdns/dnsdistdist/docs/_build tar -xf artifacts/dnsdist-html-docs-${{needs.build-docs.outputs.pdns_version}}/dnsdist-html-docs.tar -C ./pdns/dnsdistdist/docs/_build/ + cp artifacts/dnsdist-${{needs.build-docs.outputs.pdns_version}}.pdf/dnsdist.pdf ./pdns/dnsdistdist/docs/_build/dnsdist-html-docs/ inv ci-docs-upload-master --docs-host="${DOCS_HOST}" --pdf="dnsdist.pdf" --username="dnsdist_org" --product="dnsdist" env: DOCS_HOST: ${{vars.DOCS_HOST}} @@ -307,12 +313,15 @@ jobs: run: | if [ -n "$AWS_CLOUDFRONT_DISTRIBUTION_ID_DNSDIST" ]; then tar -xf artifacts/dnsdist-html-docs-${{needs.build-docs.outputs.pdns_version}}/dnsdist-html-docs.tar + cp artifacts/dnsdist-${{needs.build-docs.outputs.pdns_version}}.pdf/dnsdist.pdf dnsdist-html-docs/ node .github/scripts/publish.js publish dnsdist.org dnsdist-html-docs / fi if [ -n "$AWS_CLOUDFRONT_DISTRIBUTION_ID_DOCS" ]; then tar -xf artifacts/recursor-html-docs-${{needs.build-docs.outputs.pdns_version}}/rec-html-docs.tar + cp artifacts/PowerDNS-Recursor-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Recursor.pdf rec-html-docs/ node .github/scripts/publish.js publish docs.powerdns.com rec-html-docs /recursor tar -xf artifacts/authoritative-html-docs-${{needs.build-docs.outputs.pdns_version}}/auth-html-docs.tar + cp artifacts/PowerDNS-Authoritative-${{needs.build-docs.outputs.pdns_version}}.pdf/PowerDNS-Authoritative.pdf auth-html-docs/ node .github/scripts/publish.js publish docs.powerdns.com auth-html-docs /authoritative tar -xf artifacts/website-${{needs.build-docs.outputs.pdns_version}}/website.tar node .github/scripts/publish.js publish docs.powerdns.com website/docs.powerdns.com /