feat: prod 환경의 로그를 일자별로 파일 저장한다. #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gradle build | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
# 권한 설정 | |
permissions: write-all | |
# Work | |
jobs: | |
build: | |
runs-on: ubuntu-latest # 실행 환경 | |
steps: | |
- uses: actions/checkout@v3 # 기본 체크아웃 동작 | |
# Java version 세팅 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
# 환경 변수 설정 | |
- name: Set up Environment | |
run: echo "${{ secrets.ENV_PROPERTIES_LOCAL }}" > ./.env | |
# 빌드시 캐시 적용 | |
- name: Cache Gradle Packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-gradle | |
# 빌드 | |
- name: Build with Gradle | |
run: ./gradlew build |