diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4c6b5a9..f6b9780 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-24.04 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v2 - name: Check Node v run: node -v @@ -20,7 +20,7 @@ jobs: run: pnpm -v - name: Install Dependencies - run: pnpm install --frozen-lockfile + run: pnpm install - name: Build run: pnpm build @@ -37,15 +37,14 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} - name: Upload to S3 + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: aws s3 cp --region ap-northeast-2 ./build.zip s3://toucheese-team4-s3/build.zip - - name: Verify S3 Upload - run: aws s3 ls s3://toucheese-team4-s3/ - - name: Deploy - run: | - aws deploy create-deployment \ - --application-name TOUCHEESE-TEAM4 \ - --deployment-config-name CodeDeployDefault.AllAtOnce \ - --deployment-group-name TOUCHEESE-TEAM4-Deploy-Group \ - --s3-location bucket=toucheese-team4-s3,bundleType=zip,key=build.zip + run: aws deploy create-deployment + --application-name TOUCHEESE-TEAM4 + --deployment-config-name CodeDeployDefault.AllAtOnce + --deployment-group-name TOUCHEESE-TEAM4-Deploy-Group + --s3-location bucket=toucheese-team4-s3,key=build.zip,bundleType=zip diff --git a/deploy.sh b/deploy.sh index df656c6..116c471 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,8 +1,2 @@ -#!/bin/bash -REPOSITORY=/home/ubuntu/deploy - -cd $REPOSITORY - -sudo pnpm install - -sudo pnpm exec pm2 reload all \ No newline at end of file +#!/usr/bin/env bash +echo "> FE 배포" \ No newline at end of file