We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e2b902 commit 5b937b7Copy full SHA for 5b937b7
1 file changed
.github/workflows/build-docs.yml
@@ -1,25 +1,16 @@
1
-name: Build Hook Docs
+name: Extract WordPress Hooks
2
3
on:
4
- push:
5
- branches:
6
- - main
+ push:
+ branches: [ main, master ]
+ paths: [ '**.php' ]
7
+ workflow_dispatch:
8
9
jobs:
- hookdocs:
10
+ extract-hooks:
11
runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write # Required to push to wiki repository
14
steps:
- - uses: actions/checkout@v1
- - name: Use Node.js 10
- uses: actions/setup-node@v1
15
- with:
16
- node-version: '10.x'
17
- - name: npm install, and build docs
18
- run: |
19
- npm install
20
- npm run build:docs
21
- - name: Deploy to GH Pages
22
- uses: peaceiris/actions-gh-pages@v3
23
24
- publish_dir: './docs'
25
- github_token: ${{ secrets.GITHUB_TOKEN }}
+ - uses: actions/checkout@v4
+ - uses: akirk/extract-wp-hooks@main
0 commit comments