Skip to content

alert 추가

alert 추가 #76

name: integration to EC2
on:
push:
branches:
- main
jobs:
cd-to-ec2:
runs-on: ubuntu-latest
steps:
- name: Run cd scripts in server
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.EC2_PEM_KEY }}
host: ${{ secrets.EC2_IP }}
username: ${{ secrets.EC2_USER }}
port: ${{ secrets.EC2_SSH_PORT }}
script: |
sudo su
cd ./naverwebtoon-analyzer/backend/
git pull
sudo npm install
sudo npm run build
sudo pm2 restart main