Feat: μ¬μ©μκ° μν ν λͺ©λ‘ μ‘°ν API ꡬν #6
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: Codiary CI | |
on: | |
pull_request: | |
branches: | |
- develop | |
permissions: write-all | |
jobs: | |
build: | |
# ubuntu λ²μ μ§μ | |
runs-on: ubuntu-22.04 | |
steps: | |
# μμ€ μ½λ 체ν¬μμ | |
- uses: actions/checkout@v4 | |
# Buildλ₯Ό μν JDK μ€μΉ | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
# Gradle μΊμ± | |
- name: Cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
# Gradle κΆν λΆμ¬ | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
# application.yml μμ± | |
- name: Make application-secret.yml | |
run: | | |
cd ./src/main | |
[ ! -d "resources" ] && mkdir resources | |
cd ./resources | |
touch ./application.yml | |
echo "${{ secrets.APPLICATION_SECRET_YML}}" > ./application.yml | |
shell: bash | |
# Gradle clean bootJar | |
- name: Build Gradle | |
run: ./gradlew clean bootJar |