Skip to content

Add MSE

Add MSE #28

Workflow file for this run

name: Deploy App
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Dependencies and Build Next.js
run: |
npm install
npm run build
working-directory: ./robot_ui
- name: Create .env File
run: |
echo "$SECRET_ENV_FILE" > .env.local
env:
SECRET_ENV_FILE: ${{ secrets.ENV_FILE }}
working-directory: ./robot_ui
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i"
SOURCE: "./"
REMOTE_HOST: ${{ secrets.SSH_HOST }}
REMOTE_USER: ${{ secrets.SSH_USER }}
REMOTE_PORT: ${{ secrets.SSH_PORT }}
TARGET: ${{ secrets.SSH_REMOTE_TARGET }}
EXCLUDE: "/public/logs, /.vscode, /evalution, /face-landmark-detection, /emotion_classification, /presentations"
SCRIPT_BEFORE: |
whoami
ls -al
SCRIPT_AFTER: |
whoami
ls -al
echo $RSYNC_STDOUT