Merge pull request #264 from level-level/NielsdeBlaauw-patch-2 #66
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 assets | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build documents | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '10.x' | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Generate hookdoc | |
run: | | |
npm run doc | |
- name: Generate PHP API docs | |
uses: docker://phpdoc/phpdoc:3 | |
with: | |
args: run --title ClarksonCore --visibility public --sourcecode -d src -t out/phpdoc --setting="guides.enabled=true" | |
- name: Publish pages | |
uses: maxheld83/[email protected] | |
env: | |
BUILD_DIR: "out/" | |
GH_PAT: ${{ secrets.GH_PAT }} |