feat: add updating user info #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Connect to Server and Deploy | |
uses: appleboy/[email protected] | |
with: | |
host: ${{secrets.REMOTE_HOST}} | |
username: ${{secrets.REMOTE_USER}} | |
password: ${{secrets.REMOTE_PASSWORD}} | |
port: 22 | |
script: | | |
cd ${{secrets.REMOTE_TARGET}} | |
git pull origin main | |
pnpm i | |
pnpm run build | |
pm2 restart connect-api |