Skip to content

Commit

Permalink
phpDocumentor の自動デプロイ
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Mar 30, 2023
1 parent cbb37b7 commit 916768a
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/split_monorepo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
name: Monorepo Split of ${{ matrix.package }}
uses: "symplify/monorepo-split-github-action@v2.3.0"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
package_directory: 'plugins/${{ matrix.package.local_path }}'
repository_organization: 'baserproject'
Expand All @@ -81,7 +81,7 @@ jobs:
name: Monorepo Tagged Split of ${{ matrix.package }}
uses: "symplify/monorepo-split-github-action@v2.3.0"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'plugins/${{ matrix.package.local_path }}'
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,23 @@ jobs:
run: |
cd docker
docker exec bc5-php composer run-script test
- name: PhpDocumentor
run: |
cd docker
docker exec bc5-php wget https://phpdoc.org/phpDocumentor.phar
docker exec bc5-php php phpDocumentor.phar
- name: Deploy to Github Pages
env:
TOKEN: ${{ secrets.TOKEN }}
run: |
git config --global user.name 'ryuring'
git config --global user.email 'ryuring55@github.com'
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 Api Reference"
git push origin master
32 changes: 32 additions & 0 deletions phpdoc.dist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpdocumentor
configVersion="3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://www.phpdoc.org"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/phpDocumentor/phpDocumentor/master/data/xsd/phpdoc.xsd"
>
<paths>
<output>reference</output>
</paths>
<version number="latest">
<api>
<source dsn=".">
<path>plugins/baser-core/src</path>
<path>plugins/bc-admin-third/src</path>
<path>plugins/bc-blog/src</path>
<path>plugins/bc-content-link/src</path>
<path>plugins/bc-custom-content/src</path>
<path>plugins/bc-editor-template/src</path>
<path>plugins/bc-favorite/src</path>
<path>plugins/bc-front/src</path>
<path>plugins/bc-installer/src</path>
<path>plugins/bc-mail/src</path>
<path>plugins/bc-search-index/src</path>
<path>plugins/bc-theme-config/src</path>
<path>plugins/bc-theme-file/src</path>
<path>plugins/bc-uploader/src</path>
<path>plugins/bc-widget-area/src</path>
</source>
</api>
</version>
</phpdocumentor>

0 comments on commit 916768a

Please sign in to comment.