Skip to content

Commit b222d8e

Browse files
committed
fix: Add explicit PHP 8.3 setup to deployment workflow
wp-hooks-documentor requires PHP 8.3+ to properly extract hook parameters from docblocks. The ubuntu-latest runner may not have PHP 8.3 by default, causing parameter tables to be empty in generated documentation.
1 parent 3897268 commit b222d8e

1 file changed

Lines changed: 6 additions & 23 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
node-version: '20'
3434
cache: 'npm'
3535

36+
- name: Setup PHP
37+
uses: shivammathur/setup-php@v2
38+
with:
39+
php-version: '8.3'
40+
coverage: none
41+
3642
- name: Install dependencies
3743
run: npm ci
3844

@@ -71,26 +77,3 @@ jobs:
7177
- name: Deploy to GitHub Pages
7278
id: deployment
7379
uses: actions/deploy-pages@v4
74-
75-
update-algolia:
76-
runs-on: ubuntu-latest
77-
needs: deploy
78-
# Only run if Algolia is configured
79-
if: vars.ALGOLIA_CRAWLER_ID != ''
80-
steps:
81-
- name: Trigger Algolia crawler
82-
run: |
83-
curl -X POST \
84-
"https://crawler.algolia.com/api/1/crawlers/${{ vars.ALGOLIA_CRAWLER_ID }}/reindex" \
85-
-H "Content-Type: application/json" \
86-
-H "Authorization: Bearer ${{ secrets.ALGOLIA_CRAWLER_API_KEY }}" \
87-
--fail-with-body
88-
continue-on-error: true
89-
90-
- name: Crawler triggered
91-
if: success()
92-
run: echo "✅ Algolia crawler triggered successfully"
93-
94-
- name: Crawler failed
95-
if: failure()
96-
run: echo "⚠️ Failed to trigger Algolia crawler - check ALGOLIA_CRAWLER_ID and ALGOLIA_CRAWLER_API_KEY"

0 commit comments

Comments
 (0)