-
Notifications
You must be signed in to change notification settings - Fork 53
41 lines (37 loc) · 1.04 KB
/
publish-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
name: Generate and Publish Documentation
on:
push:
branches:
- master
- addDocs
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.3.6 ]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
ini-values: phar.readonly=0
- name: Composer update
run: composer update
- name: Install dependencies
run: composer install --prefer-dist --no-interaction
- name: Generate Documentation
run: |
rm -rf .phpdoc
wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
php phpDocumentor.phar
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .phpdoc/build