fix: enhance window resize handling in event handlers #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |