Skip to content

Commit

Permalink
Update Deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jinseohyun1228 authored Nov 7, 2024
1 parent e21a7ce commit 4d042d6
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d042d6

Please sign in to comment.