-
Notifications
You must be signed in to change notification settings - Fork 130
54 lines (43 loc) · 1.46 KB
/
php_documentor.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
51
52
53
#
# php_documentor.yml
# PhpDocumentor で作成したページを GitHub Pages にデプロイする
#
name: PhpDocumentor
on:
push:
branches:
- 'master'
jobs:
test:
name: PhpDocumentor
runs-on: ubuntu-20.04
strategy:
matrix:
php-version: ['8.1']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run compose
run: |
cd docker
cp docker-compose.yml.default docker-compose.yml
sed -i -e "s/basercms:php8.1/basercms:php${{ matrix.php-version }}/g" docker-compose.yml
sed -i -e "s/XDEBUG_MODE: \"debug\"/XDEBUG_MODE: \"off\"/g" docker-compose.yml
docker-compose up -d
- name: PhpDocumentor
run: |
cd docker
docker exec bc-php wget https://phpdoc.org/phpDocumentor.phar
docker exec bc-php php phpDocumentor.phar --title="baserCMS クラスリファレンス"
- name: Deploy to Github Pages
env:
TOKEN: ${{ secrets.TOKEN }}
run: |
git config --global user.name 'ryuring'
git config --global user.email '[email protected]'
git clone https://ryuring:${TOKEN}@github.com/baserproject/baserproject.github.io.git
cd baserproject.github.io
cp -pr ../reference ./5/plugin/
git add -A
git commit -m "[actions] update baserCMS Class Method Reference" || echo "No changes to commit"
git push origin master