name: Deploy Production
on:
  push:
    branches: [main]

jobs:
  test:
    runs-on: test
    steps:
      - uses: actions/checkout@v4
      - name: Build check
        run: cd frontend && npm ci && npm run build

  deploy:
    needs: test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Deploy Production
        run: python3 scripts/deploy-preview.py deploy-prod
