Skip to content

update deploy file with nvm #27

update deploy file with nvm

update deploy file with nvm #27

Workflow file for this run

name: Deploy App
on:
push:
branches: [master]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: SSH Exec
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.KEY }}
script: |
eval `ssh-agent -s`
ssh-add ~/.ssh/git_id_rsa
cd ${{ secrets.PATH}}
git pull
/usr/bin/fish
nvm use 20
${{ secrets.NODE }}/npm install
${{ secrets.NODE }}/npm run build
${{ secrets.NODE }}/pm2 restart thelonelylands --silent