docs: swap push and seed instruction #29
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 yukitanya | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
script: | | |
set -e | |
cd /root/yukitanya | |
git pull | |
npx pnpm i | |
npm run build | |
pm2 startOrGracefulReload ecosystem.config.js | |