-
Notifications
You must be signed in to change notification settings - Fork 40
39 lines (33 loc) · 1.04 KB
/
apigen.yml
File metadata and controls
39 lines (33 loc) · 1.04 KB
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
name: ApiGen
on:
workflow_run:
workflows: ["Unit Tests"]
branches: [master]
types:
- completed
jobs:
Document_Generator:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
- name: Download phpDocumentor
run: |
curl -fsSL -o phpDocumentor.phar https://phpdoc.org/phpDocumentor.phar
chmod +x phpDocumentor.phar
- name: Generate API docs
run: php phpDocumentor.phar -d src -t docs --no-interaction
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: gh-pages
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Docs updated by GitHub Actions'