This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
fix: redis port #35
This file contains 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 to SSH VPS | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout code from the main branch | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Install Node.js and PM2 | |
# Connect to remote server via SSH to start the bot using PM2 | |
- name: Start bot with PM2 | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
script: | | |
cd /home/loick/github/turing-ai.link | |
npm run git | |
npm i | |
npm run build | |
nvm use 18 | |
pm2 reload TuringLink |