Skip to content

Design: NavBar에 로고 추가 #59

Design: NavBar에 로고 추가

Design: NavBar에 로고 추가 #59

Workflow file for this run

name: Deploy React App to S3
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build React app
env:
REACT_APP_API_URL: ${{ secrets.REACT_APP_API_URL }}
run: CI=false npm run build
- name: Deploy to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
run: |
aws s3 sync build/ s3://$S3_BUCKET_NAME --delete
aws s3 cp build/index.html s3://$S3_BUCKET_NAME/index.html --cache-control no-store