Merge pull request #653 from finos/renovate/webpack-5.x-lockfile #2
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 CALM to S3 | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- main | |
paths: | |
- 'calm/draft/**' | |
- 'calm/samples/**' | |
jobs: | |
sync-to-s3: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Sync calm/draft folder to S3 | |
run: | | |
aws s3 sync calm/draft s3://${{ vars.AWS_S3_BUCKET }}/draft --delete | |
- name: Sync calm/samples folder to S3 | |
run: | | |
aws s3 sync calm/samples s3://${{ vars.AWS_S3_BUCKET }}/samples --delete |