Skip to content

Commit

Permalink
chore: S3 이전 파일 삭제 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejin-Yang committed Jan 4, 2024
1 parent b481f7e commit 645c098
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- develop

jobs:
test:
build:
runs-on: ubuntu-latest
timeout-minutes: 10

Expand Down Expand Up @@ -39,13 +39,21 @@ jobs:
- name: 클라이언트 빌드
run: yarn build

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: AWS CLI 설정
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2

- name: S3 이전 파일 삭제
run: |
aws s3 rm ${{ secrets.AWS_S3_URL }} --recursive
- name: S3에 배포
run: |
aws s3 sync ./dist ${{ secrets.AWS_S3_URL }}

0 comments on commit 645c098

Please sign in to comment.