From 32fae740cf15c16c7280f4631493179d2e9076bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Nesveda?= Date: Mon, 29 May 2023 13:49:16 +0200 Subject: [PATCH] chore: invalidate CloudFront cache after docs deploy (#357) This makes sure that the CloudFront cache is invalidated after the docs are deployed to GitHub pages. --- .github/workflows/docs.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 523199b2..0716f641 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -65,3 +65,8 @@ jobs: - name: Deploy artifact to GitHub Pages uses: actions/deploy-pages@v2 + + - name: Invalidate CloudFront cache + run: gh workflow run invalidate.yaml --repo apify/apify-docs-private + env: + GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}