[2주차] 기본 과제 & 심화 과제 #3
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: SOPT Seminar Server CI | |
on: | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: ✔️ 체크아웃 합니다. | |
uses: actions/checkout@v3 | |
- name: ✔️ JDK 17로 설정합니다. | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: ✔️ application.yml 파일을 생성합니다. | |
run: | | |
cd ./src/main | |
mkdir resources | |
cd ./resources | |
echo "$APPLICATION" > ./application.yml | |
env: | |
APPLICATION: ${{ secrets.APPLICATION }} | |
- name: ✔️ gradle build 를 위한 권한을 부여합니다. | |
run: chmod +x gradlew | |
- name: ✔️ gradle build 합니다. | |
run: ./gradlew build |