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 a4dfd43 commit 225719f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,24 @@ jobs:
distribution: 'temurin'

- name: Create application.properties from Secrets
working-directory: ./boomerang
run: |
echo "Current directory: $(pwd)"
mkdir -p boomerang/src/main/resources
echo "${{ secrets.APPLICATION }}" > ./boomerang/src/main/resources/application.properties
cat ./boomerang/src/main/resources/application.properties
mkdir -p src/main/resources
echo "${{ secrets.APPLICATION }}" > src/main/resources/application.properties
cat src/main/resources/application.properties
- name: Grant execute permission for gradlew
run: chmod +x ./boomerang/gradlew
working-directory: ./boomerang
run: chmod +x ./gradlew

- name: Build with Gradle
run: ./boomerang/gradlew build -x test
working-directory: ./boomerang
run: ./gradlew build -x test

- name: Make zip file
run: zip -r application.zip .
working-directory: ./boomerang
run: zip -r ../application.zip .

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down

0 comments on commit 225719f

Please sign in to comment.