feat :: 게시판 좋아요 기능 추가 #15
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: Test deploy # Workflow 이름 | |
on: # Event 감지 | |
push: | |
branches: | |
- main | |
jobs: # Job 설정 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code. # Repo checkout | |
uses: actions/checkout@v3 | |
- name: Check Node v # Node v 확인 | |
run: node -v | |
- name: Install dependencies # 의존 파일 설치 | |
run: npm install | |
- name: Generate build # React Build | |
run: npm run build | |
env: | |
CI: "" | |
- name: Deploy # Upload build file to S3 | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
aws s3 cp --recursive --region ap-northeast-2 build s3://${s3 버킷 이름} |