You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/07/04 15:39:45 UTC
(airflow-site) 02/04: Invalidate cloudfront cache when index is updated (#1217)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
commit 3998a9c39078d4c0c42f58898f1728fbdcbbd32d
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Fri Jul 4 17:24:28 2025 +0200
Invalidate cloudfront cache when index is updated (#1217)
---
.github/workflows/build.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 918a628732..bdd0a75b37 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -31,6 +31,7 @@ jobs:
PROD_PUBLISH_REQUIRED: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' || 'false' }}
STAGING_PUBLISH_REQUIRED: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/staging' || 'false' }}
PUBLISH_BRANCH: ${{ github.ref == 'refs/heads/main' && 'publish' || 'staging-publish' }}
+ CLOUDFRONT_DISTRIBUTION_ID: ${{ github.ref == 'refs/heads/main' && 'E26P75MP9PMULE' || 'E197MS0XRJC5F3' }}
steps:
- name: âšī¸ Info
run: |
@@ -126,7 +127,7 @@ jobs:
run: |
aws s3 cp ./dist/docs/index.html s3://${S3_DOCS_BUCKET}/docs/index.html
aws s3 cp ./dist/docs/index.xml s3://${S3_DOCS_BUCKET}/docs/index.xml
-
+ aws create-invalidation --distribution-id ${CLOUDFRONT_DISTRIBUTION_ID} --paths "/docs/index.html"
- name: đ
Optimize artifacts
if: ${{ github.event_name == 'pull_request' }}
run: |