Skip to content

deplou automatio v1.3 #4

deplou automatio v1.3

deplou automatio v1.3 #4

Workflow file for this run

name: Deploy to Server
on:
push:
branches:
- develop
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Deploy to Server
uses: appleboy/ssh-action@master
with:
host: ec2-54-207-67-252.sa-east-1.compute.amazonaws.com
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd /home/ubuntu/frontend/WallDreams
git pull origin develop
npm install
npm run build
sudo systemctl restart nginx