-
Notifications
You must be signed in to change notification settings - Fork 237
36 lines (35 loc) · 1001 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Docs
on:
push:
release:
types: [published]
jobs:
docs:
runs-on: ubuntu-latest
if: github.event_name == 'release' || contains(github.event.head_commit.message, 'build docs')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: iconv
tools: phive
- name: Install phpDocumentor
run: phive install phpDocumentor --trust-gpg-keys 67F861C3D889C656,6DA3ACC4991FFAE5
- name: Build class reference
run: ./tools/phpDocumentor
- name: Build documentation
run: |
cd ./docs
yarn install
yarn build
sudo mv public/* ../build
- name: Publish docs
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
CLEAN: true