Skip to content

Commit

Permalink
Invalid CloudFront distribution when deploying production docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maurobender committed Apr 4, 2023
1 parent ab16703 commit b6dd89e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
on:
release:
types: [published]
on: push
# on:
# release:
# types: [published]

jobs:
deploy_docs:
Expand All @@ -16,4 +17,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 b6dd89e

Please sign in to comment.