refactor: reorganize imports in whatsapp-action.module.ts for improve… #221
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: | |
paths: | |
- 'libs/**' | |
- 'src/**' | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Tailscale | |
uses: tailscale/github-action@v2 | |
with: | |
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} | |
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} | |
tags: tag:githubdeploy | |
- name: Deploy | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOSTNAME }} | |
username: root | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
port: 22 | |
script_stop: true | |
script: | | |
cd ${{ secrets.SERVER_CWD }} | |
git pull origin main | |
/root/.nvm/versions/node/v21.7.1/bin/pnpm i --force | |
/root/.nvm/versions/node/v21.7.1/bin/pnpx prisma db push | |
/root/.nvm/versions/node/v21.7.1/bin/pnpm run build | |
supervisorctl restart personal-whatsapp-bot | |
git checkout -- pnpm-lock.yaml |