Skip to content

Commit

Permalink
Update cicd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyunio authored Nov 14, 2024
1 parent 14bc76d commit 776abd8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: CI/CD
on:
push:
branches: [ "server" ]
pull_request:
branches: [ "server" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4

- name: Set Java
uses: actions/setup-java@v3
Expand All @@ -30,10 +28,10 @@ jobs:
run: chmod +x gradlew

- name: Run build with Gradle Wrapper
run : ./gradlew clean build --exclude-task test
run: ./gradlew clean build --exclude-task test

- name: Send file to the server
uses: appleboy/scp-action@master
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
Expand All @@ -43,7 +41,7 @@ jobs:
target: download

- name: Deploy remote ssh commands using password
uses: appleboy/ssh-action@master
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
Expand Down

0 comments on commit 776abd8

Please sign in to comment.