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 7ced774 commit 964922f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,21 @@ jobs:
java-version: '21'
distribution: 'temurin'

- name: Create application.properties from Secrets
- name: Move to boomerang folder
working-directory: ./boomerang
run: |
mkdir -p ./boomerang/src/main/resources # 디렉토리 생성
echo "${{ secrets.APPLICATION }}" > ./boomerang/src/main/resources/application.properties
cat ./boomerang/src/main/resources/application.properties
echo "Current directory: $(pwd)"
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 ./boomerang
Expand Down

0 comments on commit 964922f

Please sign in to comment.