-
-
Notifications
You must be signed in to change notification settings - Fork 17
33 lines (33 loc) · 1.02 KB
/
api_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
name: Build Api Documentation
on:
push:
branches: [main]
jobs:
build-api:
name: Build api
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout api repository
uses: actions/checkout@v3
with:
repository: alphazframework/api
path: api
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
extensions: mbstring, dom, json, libxml, xml, xmlwriter
coverage: none
- name: Download phpDocumentor
run: wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v3.0.0/phpDocumentor.phar
- name: Build api documentation
run: php phpDocumentor.phar -d ./src . -t ./api
- name: Deploy api documentation site
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.AUTH_TOKEN }}
EXTERNAL_REPOSITORY: alphazframework/api
PUBLISH_BRANCH: master
PUBLISH_DIR: ./api