Skip to content

Merge pull request #13 from mbgeorge48/bugfix/dont-show-reset-button-… #8

Merge pull request #13 from mbgeorge48/bugfix/dont-show-reset-button-…

Merge pull request #13 from mbgeorge48/bugfix/dont-show-reset-button-… #8

Workflow file for this run

name: "CD: Deploy to AWS"
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
run:
runs-on: ubuntu-latest
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: ${{ vars.S3_BUCKET }}
bucket-region: ${{ vars.S3_REGION }}
dist-id: ${{ vars.CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /
delete-removed: true
no-cache: true
private: true
files-to-include: "{.*/**,**}"