Skip to content

🎉 init(ci): deploy v2 frontend (#256) #7

🎉 init(ci): deploy v2 frontend (#256)

🎉 init(ci): deploy v2 frontend (#256) #7

Workflow file for this run

name: Deploy Nuxt Frontend
on:
push:
branch: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script_stop: true
script: |
cd /app/repo/client-ui-thing
echo "a"
export NVM_DIR=~/.nvm
echo "b"
. ~/.nvm/nvm.sh
echo "b"
nvm use 18
echo "c"
npm run build
echo "d"
pm2 restart clearhabits-client --update-env