From 702f9e409ca7bab0e29153eeccbc3ea0aa64f979 Mon Sep 17 00:00:00 2001 From: Gwanghyeon-k Date: Sun, 23 Jun 2024 03:26:33 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20ci.yml=EC=97=90=20cd=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42e39be..49c7e7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,3 +107,25 @@ jobs: JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }} JWT_EXPIRE_LENGTH: ${{ secrets.JWT_EXPIRE_LENGTH }} GPT_API_KEY: ${{ secrets.GPT_API_KEY }} + + # 디렉토리 생성 + - name: Make Directory + run: mkdir -p deploy + + # Jar 파일 복사 + - name: Copy Jar + run: cp ./build/libs/*.jar ./deploy + + - name: Make zip file + run: zip -r ./nextpage.zip ./deploy + shell: bash + + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: ap-northeast-2 + + - name: Upload to S3 + run: aws s3 cp --region ap-northeast-2 ./nextpage.zip s3://nextpage-deploy/ \ No newline at end of file