Skip to content

Commit

Permalink
chore: 중복해서 build하는 스크립트 제거 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgksqkr committed Apr 10, 2024
1 parent f16de47 commit 0f6cb25
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/front-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jobs:
- name: Install Dependencies
run: npm install

# 리액트 빌드
- name: build react
run: npm run build

# aws user 연결
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -47,7 +43,7 @@ jobs:
VITE_DEV_SERVER_URL: ${{ secrets.VITE_DEV_SERVER_URL }}
VITE_PROD_SERVER_URL: ${{ secrets.VITE_PROD_SERVER_URL }}

# react 빌드한 /build를 s3로 업로드
# react 빌드한 /dist를 s3로 업로드
- name: Upload /dist to S3
env:
BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME}}
Expand All @@ -63,6 +59,7 @@ jobs:
aws cloudfront create-invalidation \
--distribution-id $CLOUD_FRONT_ID --paths "/*"
# 배포
- name: deploy
run: |
npm run deploy:prod

0 comments on commit 0f6cb25

Please sign in to comment.