Skip to content

Commit

Permalink
🎉 init(ci): deploy v2 frontend (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveryh committed Jan 31, 2024
1 parent 66c3699 commit eb8ff3c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy_v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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

0 comments on commit eb8ff3c

Please sign in to comment.