File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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/
You can’t perform that action at this time.
0 commit comments