Skip to content

Commit

Permalink
Merge pull request #3 from amalgamaco/mb-invalidate_cloudfront_distri…
Browse files Browse the repository at this point in the history
…bution_when_deploying_production_docs

Invalidate CloudFront distribution when deploying production docs
  • Loading branch information
maurobender authored Apr 4, 2023
2 parents ab16703 + 02d7c0a commit b1643fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,11 @@ jobs:
AWS_S3_BUCKET: ${{ secrets.DOCS_PRODUCTION_AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: 'docs/build'
SOURCE_DIR: 'docs/build'
- uses: chetan/invalidate-cloudfront-action@v2
env:
PATHS: "/index.html"
AWS_REGION: "us-east-1"
DISTRIBUTION: ${{ secrets.DOCS_PRODUCTION_AWS_CLOUDFRONT_DISTRIBUTION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit b1643fa

Please sign in to comment.