-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.25 KB
/
build.doc.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
45
46
47
48
49
50
name: Update Documentation
on:
workflow_dispatch:
env:
PHPDOCUMENTORURL: https://phpdoc.org/phpDocumentor.phar
PHPDOCUMENTORFILENAME: phpDocumentor.phar
jobs:
build:
permissions: write-all
runs-on: "ubuntu-24.04"
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: "8.4"
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, bcmath, intl, gd, exif, iconv, imagick, json, xdebug
coverage: xdebug
- name: Prepare Directories
run: |
mkdir build/builddoc
mkdir build/doc
mkdir build/coverage
mkdir build/coverage-html
mkdir build/logs
mkdir build/pdepend
mkdir build/dist
mkdir build/phpdoc
- name: Documentation
continue-on-error: true
run: |
wget $PHPDOCUMENTORURL -O $PHPDOCUMENTORFILENAME
chmod +x $PHPDOCUMENTORFILENAME
cd build
php ../$PHPDOCUMENTORFILENAME
cd ..
rm -f $PHPDOCUMENTORFILENAME
- name: Deploy
continue-on-error: true
run: |
zip -r build/dist/doc.zip build/doc