Skip to content

feat: 계약 목록 및 상세 조회 구현 #12

feat: 계약 목록 및 상세 조회 구현

feat: 계약 목록 및 상세 조회 구현 #12

Workflow file for this run

name: BE CI
on:
pull_request:
branches:
- dev
types: [ opened ]
paths:
- 'server/**'
permissions: #github actions bot에게 권한 열기
pages: write
id-token: write
contents: write
issues: read
checks: write
pull-requests: write
jobs:
be-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Grant Permission
run: chmod +x server/gradlew
- name: Gradle Build
run: |
cd server
./gradlew clean build
if: success()
- name: PR Test Result
uses: EnricoMi/publish-unit-test-result-action@v1
if: ${{ always() }}
with:
files: server/build/test-results/**/*.xml
- name: Copy
run: |
mkdir -p DEPLOY_FILE/server
cp -r server/build/libs/*.jar DEPLOY_FILE/server/
- name: Git Config
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Build
run: |
timestamp=$(date +"%Y-%m-%d_%H-%M-%S")
cp -r DEPLOY_FILE/server/* .
git fetch origin
git checkout prod || git checkout -b prod
git add DEPLOY_FILE/server
git commit -m "release: $timestamp BE 배포 완료"
git push origin prod --force