Skip to content

chore

chore #53

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: from DEVELOP to MAIN
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
## gradle caching
- name: Gradle ์บ์‹ฑ
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: Make application.yml
run: |
cd ./src/main
ls
cd ./resources
touch ./application.yml
touch ./application-dev.yml
echo "$APPLICATION" > ./application.yml
echo "$APPLICATION_DEV" > ./application-dev.yml
env:
APPLICATION: ${{ secrets.APPLICATION }}
APPLICATION_DEV: ${{ secrets.APPLICATION_DEV }}
shell: bash
- name: Gradle ๊ถŒํ•œ ๋ถ€์—ฌ
run: |
chmod +x gradlew
- name: Gradle๋กœ ๋นŒ๋“œ ์‹คํ–‰
run: |
./gradlew bootjar
# Configure Gradle for optimal use in GiHub Actions, including caching of downloaded dependencies.
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Slack ์•Œ๋žŒ ๋ฐœ์†ก
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: general
SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff'
SLACK_ICON: https://github.com/rtCamp.png?size=48
SLACK_MESSAGE: ๋นŒ๋“œ ๊ฒฐ๊ณผ => ${{ job.status }}
SLACK_TITLE: ๋นŒ๋“œ ๊ฒฐ๊ณผ ์•Œ๋žŒ
SLACK_USERNAME: Notification-Bot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()