Skip to content

feat: safety setting #173

feat: safety setting

feat: safety setting #173

Workflow file for this run

name: deploy
on:
push:
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/.bun/bin/bun i --no-save
/root/.bun/bin/bunx prisma db push
/root/.bun/bin/bun run build
supervisorctl restart personal-whatsapp-bot