Skip to content

Merge pull request #66 from innogeeks/test #24

Merge pull request #66 from innogeeks/test

Merge pull request #66 from innogeeks/test #24

Workflow file for this run

name: prod pipeline
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST_DNS }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
cd innohacks3.0
git pull
npm i --legacy-peer-deps
npm run build
pm2 restart prod