Skip to content

fix : simple-git cannot be used on a directory that does not exist #34

fix : simple-git cannot be used on a directory that does not exist

fix : simple-git cannot be used on a directory that does not exist #34

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
cd "/var/www/html/faithfulmods.net"
git stash
git pull -v
nvm install
npm install
npm run build
npm run db:apply
pm2 restart "WEBSITE FAITHFUL MODS" -s