Swap out json_encode for wp_json_encode #501
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Hook Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
hookdocs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16.x' | |
- name: npm install, and build docs | |
run: | | |
npm install | |
npm run build:docs | |
- name: Deploy to GH Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
publish_dir: './docs' | |
github_token: ${{ secrets.GITHUB_TOKEN }} |