Merge pull request #36 from SSUDevelog/feat/#33 #13
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: deploy | |
on: | |
push: | |
branches: ['dev'] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: execute remote ssh | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.REMOTE_SSH_HOST }} | |
username: ${{ secrets.REMOTE_SSH_USERNAME }} | |
key: ${{ secrets.REMOTE_SSH_KEY }} | |
port: ${{ secrets.REMOTE_SSH_PORT }} | |
command_timeout: 200m | |
script: | | |
cd ~/EasyVel-Server | |
sudo git pull origin dev | |
./gradlew clean build --exclude-task test | |
cp ./build/libs/*-SNAPSHOT.jar ~/EasyVelServer/nonstop/jar | |
cd ~/EasyVelServer/nonstop | |
./deploy.sh |