diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index dd525f6..ff00e12 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,5 +1,5 @@ name: deploy yukitanya -on: +on: push: branches: - master @@ -15,8 +15,10 @@ jobs: username: ${{ secrets.USERNAME }} key: ${{ secrets.KEY }} script: | + set -e cd /root/yukitanya git pull npx pnpm i npm run build - pm2 restart ecosystem.config.js || pm2 start ecosystem.config.js \ No newline at end of file + pm2 restart ecosystem.config.js || pm2 start ecosystem.config.js +