From 916768acf2278089e8fe0262bbe443d831df156b Mon Sep 17 00:00:00 2001 From: ryuring Date: Thu, 30 Mar 2023 22:53:57 +0900 Subject: [PATCH] =?UTF-8?q?phpDocumentor=20=E3=81=AE=E8=87=AA=E5=8B=95?= =?UTF-8?q?=E3=83=87=E3=83=97=E3=83=AD=E3=82=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/split_monorepo.yml | 4 ++-- .github/workflows/test.yml | 20 +++++++++++++++++ phpdoc.dist.xml | 32 ++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 phpdoc.dist.xml diff --git a/.github/workflows/split_monorepo.yml b/.github/workflows/split_monorepo.yml index b108399faf..5baca1cca7 100644 --- a/.github/workflows/split_monorepo.yml +++ b/.github/workflows/split_monorepo.yml @@ -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' @@ -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 }}' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c13a48ff87..55ec4193be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 + diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml new file mode 100644 index 0000000000..cd18151ef2 --- /dev/null +++ b/phpdoc.dist.xml @@ -0,0 +1,32 @@ + + + + reference + + + + + plugins/baser-core/src + plugins/bc-admin-third/src + plugins/bc-blog/src + plugins/bc-content-link/src + plugins/bc-custom-content/src + plugins/bc-editor-template/src + plugins/bc-favorite/src + plugins/bc-front/src + plugins/bc-installer/src + plugins/bc-mail/src + plugins/bc-search-index/src + plugins/bc-theme-config/src + plugins/bc-theme-file/src + plugins/bc-uploader/src + plugins/bc-widget-area/src + + + +