-
Notifications
You must be signed in to change notification settings - Fork 156
40 lines (32 loc) · 913 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
37
38
39
40
name: Docs
on:
workflow_dispatch:
push:
branches:
- master
jobs:
docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Download phpDocumentor
run: |
mkdir -p tools
wget https://phpdoc.org/phpDocumentor.phar -O tools/phpdocumentor
- name: Generate Documentation
run: php tools/phpdocumentor run --config=phpdoc.xml
- name: Create CNAME file
run: echo "lib-core.docs.libredte.cl" > build/docs/CNAME
- name: Deploy to GitHub Pages
if: success()
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs
publish_branch: gh-pages