Skip to content

fix: enhance window resize handling in event handlers #7

fix: enhance window resize handling in event handlers

fix: enhance window resize handling in event handlers #7

Workflow file for this run

name: Deploy Backend
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p 2223 -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
- name: Deploy to VM
run: |
ssh -p 2223 \
-i ~/.ssh/id_rsa \
-o StrictHostKeyChecking=no \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF'
set -e
cd ~/void
git pull origin main
npm install
npm run build
pm2 restart origin || pm2 start dist/index.js --name origin
pm2 save
EOF