Skip to content

Chenmo1212 is deploying Chenmo1212/readingBook 🚀 #3

Chenmo1212 is deploying Chenmo1212/readingBook 🚀

Chenmo1212 is deploying Chenmo1212/readingBook 🚀 #3

Workflow file for this run

name: FIKA Reading Deployment
run-name: ${{ github.actor }} is deploying ${{ github.repository }} 🚀
on: [push]
# pull_request:
# branches:
# - main
# types:
# - closed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check_out-code 🔎
uses: actions/checkout@v2
- name: Step 2 - Deploy to Server 🖥️
uses: easingthemes/[email protected]
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
ARGS: "-rltgoDzvO"
SOURCE: "/"
REMOTE_HOST: ${{ vars.REMOTE_HOST }}
REMOTE_USER: 'root'
TARGET: ${{ vars.TARGET }}
- name: SSH into Server and Start Flask App
uses: appleboy/ssh-action@master
with:
host: ${{ vars.REMOTE_HOST }}
username: root
key: ${{ secrets.PRIVATE_KEY }}
port: 22
script: |
# Use the lsof command to find the process occupying port 3002
PID=$(lsof -t -i :3002)
# # If the process is found, kill it
# if [ -n "$PID" ]; then
# kill -9 $PID
# fi
#
# cd ${{ vars.TARGET }}
# npm install
# npm run build
# nohup npm start > ai_resume.log 2>&1 &