Files
peptide-search-ai/.github/workflows/deploy.yml
peptiderepo d5a512a5af ci: adopt reusable CI + 300-line compliance for v4.7.0
- Replace per-repo CI jobs with thin reusable caller
  (peptide-e2e ci.yml@main; tests:stubs, has_js:true)
- Add permissions: contents: write (required for phpcbf auto-commit)
- deploy.yml: drop file-existence + PHP-syntax redundancy; keep PSA_VERSION check
- class-psa-admin.php: remove 37 dead backward-compat proxy lines (327→290)
- class-psa-ai-generator.php: remove 17 dead backward-compat proxy lines (309→292)
- class-psa-search.php: remove 13 dead backward-compat proxy lines (307→294)
  All three files now comply with the estate 300-line rule.
  Zero external callers of removed methods confirmed.
- package.json / package-lock.json: minimal npm manifest for lint-js npm ci step
- ARCHITECTURE.md: update ci.yml description
- PSA_VERSION: sync constant (was 4.5.0) with header (was 4.6.0) → both 4.7.0

Agent-Session: claude-sonnet-4-6-adopt-ci-20260616
2026-06-16 13:20:21 +00:00

43 lines
997 B
YAML
Executable File

name: Deploy to WordPress
on:
push:
branches: [ main ]
permissions:
contents: read
concurrency:
group: deploy-peptide-search-ai
cancel-in-progress: true
jobs:
test:
name: Pre-deploy tests
uses: ./.github/workflows/ci.yml
validate:
name: Validate deployment
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Verify PSA_VERSION constant
run: |
if grep -q "define( 'PSA_VERSION'" peptide-search-ai.php; then
version=$(grep "define( 'PSA_VERSION'" peptide-search-ai.php | sed "s/.*'\([^']*\)'.*/\1/")
echo "✓ PSA_VERSION: $version"
else
echo "❌ PSA_VERSION not found"; exit 1
fi
deploy:
name: Deploy (shared pipeline)
needs: validate
uses: peptiderepo/peptide-e2e/.github/workflows/deploy-app.yml@main
with:
target_path: wp-content/plugins/peptide-search-ai
secrets: inherit