Merge pull request #539 from ddps-lab/azure-collector-fix #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Demo-Web html to S3 | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'frontend/build/**' | |
workflow_dispatch: | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KMUBIGDATA_PROD_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_KMUBIGDATA_PROD_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: 'us-west-2' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: "Sync with AWS S3" | |
run: aws s3 sync ./frontend/build/ s3://${{ secrets.AWS_SPOTLAKE_S3_BUCKET_NAME }} --acl public-read --delete | |
- name: "Create Invalidation" | |
run: aws cloudfront create-invalidation --distribution-id E2VA9I0M7YAVHW --paths "/*" |