From e991cf81836914ad19bbb49d8509b95acd636048 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 11 Oct 2024 15:21:43 -0400 Subject: [PATCH] Test Commit --- .github/workflows/ncc_workflow.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ncc_workflow.yml b/.github/workflows/ncc_workflow.yml index d54c69f..500d15d 100644 --- a/.github/workflows/ncc_workflow.yml +++ b/.github/workflows/ncc_workflow.yml @@ -337,6 +337,36 @@ jobs: else echo "phpdoc-exists=false" >> $GITHUB_OUTPUT fi + generate-phpdoc: + needs: [release, check-phpdoc] + runs-on: ubuntu-latest + container: + image: php:8.3 + if: needs.check-phpdoc.outputs.phpdoc-exists == 'true' + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: | + apt update -yqq + apt install git libpq-dev libzip-dev zip make wget gnupg -yqq + + - name: Download PHPDocumentor + run: | + wget https://phpdoc.org/phpDocumentor.phar + chmod +x phpDocumentor.phar + + - name: Generate PHPDoc + run: | + php phpDocumentor.phar -d src -t docs + + - name: Upload PHPDoc + uses: actions/upload-artifact@v4 + with: + name: documentation + path: docs test: needs: [release, release-compressed, release-executable, release-executable-compressed, debug, debug-compressed, check-phpunit]