Skip to content

Merge pull request #125 from KAKAO-TOUR-API-CONTEST/develop #129

Merge pull request #125 from KAKAO-TOUR-API-CONTEST/develop

Merge pull request #125 from KAKAO-TOUR-API-CONTEST/develop #129

Workflow file for this run

name: front-server
on:
push:
branches: main
#pull_request:
#branches: main
#types: [closed]
jobs:
deploy:
runs-on: ubuntu-latest
#if: github.event_name == 'push'
steps:
- name: main branch
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_SSH_HOST }}
username: ${{ secrets.REMOTE_SSH_UESRNAME }}
password: ${{ secrets.REMOTE_SSH_PASSWORD }}
port: ${{ secrets.REMOTE_SSH_PORT }}
script_stop: true
script: |
cd /java/BACKEND
git restore .
git pull
./gradlew clean
./gradlew build
systemctl restart aijeju