Skip to content

Commit 5b937b7

Browse files
committed
Replace with wiki builder
1 parent 0e2b902 commit 5b937b7

1 file changed

Lines changed: 10 additions & 19 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
name: Build Hook Docs
1+
name: Extract WordPress Hooks
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
push:
5+
branches: [ main, master ]
6+
paths: [ '**.php' ]
7+
workflow_dispatch:
78

89
jobs:
9-
hookdocs:
10+
extract-hooks:
1011
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # Required to push to wiki repository
1114
steps:
12-
- uses: actions/checkout@v1
13-
- name: Use Node.js 10
14-
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-
with:
24-
publish_dir: './docs'
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
15+
- uses: actions/checkout@v4
16+
- uses: akirk/extract-wp-hooks@main

0 commit comments

Comments
 (0)