Skip to content

hmm

hmm #225

Workflow file for this run

name: Build + Deploy

Check failure on line 1 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yaml

Invalid workflow file

(Line: 21, Col: 9): There's not enough info to determine what you meant. Add one of these properties: run, shell, uses, with, working-directory
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