-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (30 loc) · 1001 Bytes
/
phpdoc.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
name: PhpDocumentor
on:
workflow_run:
workflows: ["Unit Tests"]
branches: [master]
types:
- completed
jobs:
PHPDoc:
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Generate Docs
run: |
wget -q https://phpdoc.org/phpDocumentor.phar
chmod +x phpDocumentor.phar
./phpDocumentor.phar run -d src -t docs --visibility public,protected --title $GITHUB_REPOSITORY
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch