-
Notifications
You must be signed in to change notification settings - Fork 32
44 lines (35 loc) · 1.03 KB
/
documentation.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
37
38
39
40
41
42
43
44
name: Update Documentation
on:
workflow_dispatch:
push:
branches:
- master
jobs:
documentation:
runs-on: ubuntu-latest
name: Documentation
strategy:
matrix:
operating-system: [ 'ubuntu-latest' ]
php-versions: [ '8.1' ]
steps:
- uses: actions/checkout@master
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Install API doc generator tool
run: composer create-project --no-dev apigen/apigen:^7.0@alpha tools/apigen
- name: Generate Documentation
run: tools/apigen/bin/apigen src --output docs
- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Documentation updated"