From e48005f9786ee2cba3162d05c348730532a5fc76 Mon Sep 17 00:00:00 2001 From: milzi234 Date: Tue, 18 Feb 2025 09:25:49 +0100 Subject: [PATCH] don't wait for invalidation to finish before continuing --- .github/workflows/documentation.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) 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 -- 2.47.2