From d09d2091fe05d366465ef2dd2cfc3683de3e1a84 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Mon, 5 Jun 2023 13:10:15 +0300 Subject: [PATCH] - added docs generator; --- .github/workflows/build-docs.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build-docs.yml diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml new file mode 100644 index 00000000..4168dda6 --- /dev/null +++ b/.github/workflows/build-docs.yml @@ -0,0 +1,32 @@ +name: Build Hook Docs + +on: + push: + branches: + - master + - development/2.6.3 + +jobs: + hookdocs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: npm install, and build docs + run: | + npm install + npm run build:docs + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + - name: PhpDocumentor + uses: gpupo/actions-phpDocumentor@1.0 + with: + dir: './' + - name: Deploy to GH Pages + uses: JamesIves/github-pages-deploy-action@v4.3.3 + with: + branch: gh-pages # The branch the action should deploy to. + folder: 'docs/' # The folder the action should deploy. + token: ${{ secrets.GH_PAT }}