Merge pull request #140 from KAKAO-TOUR-API-CONTEST/devyj #143
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |