Skip to content

Commit

Permalink
Merge pull request #62 from team9502/dev
Browse files Browse the repository at this point in the history
Update sinChul.yml
  • Loading branch information
daeundada authored Jun 12, 2024
2 parents a842718 + 8a84d5d commit 8adbd9f
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/sinChul.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,40 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'


- name: Set up cache for Gradle
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
- name: Remove generated sources
run: rm -rf ./src/main/generated
- name: Clean and Build Jar
run: ./gradlew clean bootJar --info # 추가된 '--info' 옵션으로 로그 확장

- name: Generate QueryDSL Q classes
run: ./gradlew compileQuerydsl

- name: Build and create bootJar
run: ./gradlew clean bootJar

- name: Copy jar to server
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ec2-user
key: ${{ secrets.SSH_KEY }}
port: 22
source: "./build/libs/*..jar"
source: "./build/libs/*.jar"
target: "/home/ec2-user"
strip_components: 2

Expand Down

0 comments on commit 8adbd9f

Please sign in to comment.