From 4d042d6f5b8fc9b9b947e76fe818cef40a9b80c1 Mon Sep 17 00:00:00 2001 From: jinseohyun1228 <121755257+jinseohyun1228@users.noreply.github.com> Date: Fri, 8 Nov 2024 04:48:05 +0900 Subject: [PATCH] Update Deploy.yml --- .github/workflows/Deploy.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index 383722cb..418e055d 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -41,28 +41,30 @@ jobs: working-directory: ./boomerang run: ./gradlew build -x test - - name: Debug working directory - run: | - echo "Current directory: $(pwd)" - ls -l ./boomerang/scripts - - - name: Convert line endings and grant execute permission for scripts - run: | - # Change to the script directory - cd ./boomerang/scripts - # Convert Windows line endings to Unix line endings - sed -i 's/\r$//' start_server.sh - # Grant execute permission - chmod +x start_server.sh - - name: Make zip file including appspec.yml run: | # Make sure appspec.yml is included in the zip cp appspec.yml ./boomerang/ cp -r ./boomerang/build/libs ./boomerang/ # libs 폴더 복사 - cp -r ./boomerang/scripts ./boomerang/ # scripts 폴더 복사 + cp -r ./scripts ./boomerang/ # scripts 폴더 복사 + chmod +x ./boomerang/scripts/start_server.sh # 실행 권한 부여 cd ./boomerang zip -r ../application.zip . + cd .. + + - name: Convert Windows line endings to Unix line endings + run: | + # Current working directory + echo "Current directory: $(pwd)" + + # Convert Windows line endings to Unix line endings in the correct path + sed -i 's/\r$//' ./scripts/start_server.sh + + # Grant execute permission + chmod +x ./scripts/start_server.sh + + # Now run the script (optional) + ./scripts/start_server.sh - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1