Skip to content

Commit 702f9e4

Browse files
committed
feat : ci.yml에 cd 코드 적용
1 parent 24eaf84 commit 702f9e4

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,25 @@ jobs:
107107
JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}
108108
JWT_EXPIRE_LENGTH: ${{ secrets.JWT_EXPIRE_LENGTH }}
109109
GPT_API_KEY: ${{ secrets.GPT_API_KEY }}
110+
111+
# 디렉토리 생성
112+
- name: Make Directory
113+
run: mkdir -p deploy
114+
115+
# Jar 파일 복사
116+
- name: Copy Jar
117+
run: cp ./build/libs/*.jar ./deploy
118+
119+
- name: Make zip file
120+
run: zip -r ./nextpage.zip ./deploy
121+
shell: bash
122+
123+
- name: Configure AWS credentials
124+
uses: aws-actions/configure-aws-credentials@v1
125+
with:
126+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
127+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
128+
aws-region: ap-northeast-2
129+
130+
- name: Upload to S3
131+
run: aws s3 cp --region ap-northeast-2 ./nextpage.zip s3://nextpage-deploy/

0 commit comments

Comments
 (0)