This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
Update model name in imagine.ts #237
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: | |
- ddeno-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 pull all changes and re-build the bot | |
- name: Deploy ddeno bot | |
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/ddeno-bot | |
nvm use 20 | |
PATH="$HOME/.nvm/versions/node/v20.0.0/bin:$PATH" | |
bun run git | |
bun run build | |
pm2 reload DB | |
pm2 reload Bot |