fix: fix build error with ignorecase #9
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 React App to S3 | |
on: | |
push: | |
branches: | |
- main | |
- feature/* | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# 1. μ½λ 체ν¬μμ | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# 2. Node.js μ€μΉ | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
# 3. μμ‘΄μ± μ€μΉ (npm install) | |
- name: Install dependencies | |
run: npm install | |
# 4. React μ± λΉλ | |
- name: Build React app | |
run: | | |
echo "VITE_API_BASE_URL=${{ secrets.VITE_API_BASE_URL }}" >> .env | |
echo "VITE_USE_MSW=${{ secrets.VITE_USE_MSW }}" >> .env | |
echo "VITE_KAKAO_MAP_KEY=${{ secrets.VITE_KAKAO_MAP_KEY }}" >> .env | |
npm run build | |
# 5. AWS S3λ‘ νμΌ μ λ‘λ | |
- name: Deploy to S3 | |
uses: awact/s3-action@master | |
with: | |
args: --acl public-read --follow-symlinks --delete | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: 'ap-northeast-2' | |
AWS_S3_BUCKET: ${{ secrets.S3_BUCKET_NAME }} | |
SOURCE_DIR: './dist' # λΉλλ React μ±μ΄ μλ λλ ν°λ¦¬ |