Merge branch 'AdaptyConfiguration' into develop #68
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: Deploy docs to S3 development | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
environment: development | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Deploy | |
uses: reggionick/s3-deploy@v4 | |
with: | |
folder: build | |
bucket: ${{ secrets.S3_BUCKET }} | |
bucket-region: ${{ secrets.S3_BUCKET_REGION }} | |
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} | |
invalidation: /* | |
delete-removed: true | |
# no-cache: true | |
private: true | |
# files-to-include: '{.*/**,**}' |