Workflow file for this run
This file contains hidden or 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: Build + Deploy | ||
|
Check failure on line 1 in .github/workflows/deploy.yaml
|
||
| on: | ||
| push: | ||
| branches: | ||
| - "main" | ||
| paths: | ||
| - "client/**" | ||
| - "common/**" | ||
| - "server/**" | ||
| - ".github/workflows/**" | ||
| jobs: | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup pnpm | ||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 10 | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22.x" | ||
| - name: Install common dependencies | ||
| run: cd common && pnpm i | ||
| - name: Install client dependencies | ||
| run: cd client && pnpm i | ||
| - name: Build client | ||
| run: cd client && pnpm build | ||
| - name: Install server dependencies | ||
| run: cd server && pnpm i | ||
| - name: Build server | ||
| run: cd server && pnpm build | ||
| deploy: | ||
| name: Deploy | ||
| runs-on: ubuntu-latest | ||
| needs: [build] | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Deploy to camelot | ||
| uses: appleboy/ssh-action@v1 | ||
| with: | ||
| host: 45.55.60.192 | ||
| username: root | ||
| key: ${{ secrets.CAMELOT_PRIVATE_KEY }} | ||
| port: 22 | ||
| script: | | ||
| cd pt-poosd | ||
| git pull | ||
| ./deploy.bash | ||