diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 486de74..9a6aec2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -2,9 +2,9 @@ name: CI/CD with Gradle on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] permissions: contents: read @@ -19,14 +19,14 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v3 with: - java-version: '17' - distribution: 'temurin' + java-version: "17" + distribution: "temurin" - name: make application yml run: | - cd ./src/main/resources - touch ./application.yml - echo "${{ secrets.APPLICATION_YML }}" > ./application.yml + mkdir -p src/main/resources + echo "${{ secrets.APPLICATION_YML }}" | base64 --decode > src/main/resources/application.yml + find src shell: bash - name: Build with Gradle @@ -52,4 +52,4 @@ jobs: sudo docker stop hanafun sudo docker rm hanafun sudo docker run -d -p 8080:8080 --name hanafun "${{ secrets.DOCKER_USERNAME_YUB }}/hanafun:latest" - sudo docker image prune -f \ No newline at end of file + sudo docker image prune -f