remove acls #5
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: React Frontend AWS S3 Web App CI/CD | |
on: | |
push: | |
branches: | |
- cd-with-aws | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
branches: | |
- cd-with-aws | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] # macos-latest, windows-latest | |
node-version: [20.x] | |
runs-on: ${{ matrix.os }} # ubuntu-latest | |
defaults: | |
run: | |
working-directory: frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies with clean install | |
run: npm ci | |
- name: Build app | |
run: npm run build | |
- name: Upload to S3 | |
uses: jakejarvis/s3-sync-action@master | |
# with: | |
# args: --acl public-read | |
env: | |
SOURCE_DIR: frontend/build/ | |
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |