-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.31 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# github repository Actions 페이지에 나타낼 이름
name: soullive A CI with Gradle
# event trigger
# main, develop 브랜치에 pr 생성시 실행되는 트리거
on:
# pr 생성시 CI까지만 진행
pull_request:
branches: [ "main", "develop" ]
# permissions: write-all
jobs:
build:
runs-on: ubuntu-20.04
steps:
## jdk setting
- uses: actions/checkout@v3
- name: 🐧Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
## gradle caching
- name: 🐧Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: 🐧application.yml 파일을 생성 합니다.
run: |
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.PROPERTIES }}" > ./application.yml
shell: bash
- name: 🐧gradle build를 위한 권한을 부여합니다.
run: chmod +x gradlew
- name: 🐧gradle build 중입니다.
run: ./gradlew build
shell: bash # ci는 여기까지