This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
Remove fast-sdxl.ts and update sh.ts with new model options #467
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: | |
- new | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout code from the main branch | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Connect to remote server via SSH to start the bot using PM2 | |
- name: Build and reload API | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
script: | | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" | |
cd /home/trident/github/turing-api-new | |
nvm use 20 | |
PATH="$HOME/.nvm/versions/node/v20.0.0/bin:$PATH" | |
npm run git | |
npm i | |
rm -r dist | |
npm run build | |
pm2 reload TuringAPINew |