Skip to content

chore: add authorised email #32

chore: add authorised email

chore: add authorised email #32

Workflow file for this run

name: Server CI
on:
push:
paths:
- ".github/workflows/server-ci.yml"
- "server/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: garygrossgarten/github-action-ssh@release
with:
command: |
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
cd /var/www/torrent-streaming
git reset --hard
git pull
npm --prefix server install
npm --prefix server run build
pm2 reload server
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.PRIVATE_KEY }}