Skip to content

[BE] BUILD: kotlin build jar로 실행 가능하도록 변경 #2

[BE] BUILD: kotlin build jar로 실행 가능하도록 변경

[BE] BUILD: kotlin build jar로 실행 가능하도록 변경 #2

Workflow file for this run

name: backend CI
on:
push:
paths:
- "cron/**"
pull_request:
paths:
- "cron/**"
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Make ssh file
run: |
mkdir -p ~/.ssh
echo '${{ secrets.SSH_CONFIG }}' | base64 -d > ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
- name: Checkout
uses: actions/checkout@v3
with:
submodule: true
- name: Update submodule
run: |
git submodule update --init config/
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "corretto"
- name: Cache Gradle packages
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: Build with Gradle
run: |
cd cron
chmod +x gradlew
./gradlew build
shell: bash