Skip to content

Environment-specific workflows #1

Environment-specific workflows

Environment-specific workflows #1

Workflow file for this run

name: Deploy Node.js App (Production)
on:
pull_request:
types:
- closed
branches:
- prod
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using SSH key
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }}
script: cd /home/dangoweb/domains/faisaln.com/southern-bell && git pull && cloudlinux-selector restart --json --interpreter nodejs --app-root "/home/dangoweb/domains/faisaln.com/southern-bell"