From: milzi234 Date: Tue, 18 Feb 2025 08:25:49 +0000 (+0100) Subject: don't wait for invalidation to finish before continuing X-Git-Tag: dnsdist-2.0.0-alpha1~22^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e48005f9786ee2cba3162d05c348730532a5fc76;p=thirdparty%2Fpdns.git don't wait for invalidation to finish before continuing --- diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 911165b24c..b216bd508f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -290,11 +290,12 @@ jobs: # Invalidate CloudFront cache for DNSdist aws cloudfront create-invalidation \ --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID_DNSDIST \ - --paths "/*" - 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/ + --paths "/*" \ + --no-wait + 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/ rclone copy rec-html-docs/ docs-s3:$AWS_S3_BUCKET_DOCS/docs.powerdns.com/recursor/ tar -xf artifacts/authoritative-html-docs-${{needs.build-docs.outputs.pdns_version}}/auth-html-docs.tar @@ -307,5 +308,11 @@ jobs: # Invalidate CloudFront cache for docs.powerdns.com aws cloudfront create-invalidation \ --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID_DOCS \ - --paths "/*" - fi + --paths "/*" \ + --no-wait + fi + # Cleanup credentials + - name: Cleanup rclone config + if: always() + run: | + rm -f ~/.config/rclone/rclone.conf