-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.06 KB
/
gradle.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
name: Java CI with Gradle
on:
pull_request:
branches: [ main ]
env:
APPLICATION: ${{ secrets.APPLICATION }}
RESOURCE_PATH: ./src/main/resources/application.yml
S3_BUCKET_NAME: timitimi-code-deploy
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
# (0) 기본 체크아웃
- name: Checkout
uses: actions/checkout@v3
# (1) JDK 11 세팅
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
# (2) Application.yml 생성
- uses: actions/checkout@v2
- run: mkdir ./src/main/resources
- run: touch "${{env.RESOURCE_PATH}}"
- run: echo "${{env.APPLICATION}}" > ${{env.RESOURCE_PATH}}
- uses: actions/upload-artifact@v2
with:
name: application.yml
path: ${{env.RESOURCE_PATH}}
# (3) Gradle build
- name: Build with Gradle
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with:
arguments: clean build