Skip to content

Commit

Permalink
Generate PHP Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
SushilMallRC committed Apr 21, 2024
1 parent 6208845 commit 4e9569a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 39 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Generate and Publish Documentation

on:
push:
branches:
- master
- addDocs

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ 8.3.6 ]
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
ini-values: phar.readonly=0
- name: Composer update
run: composer update
- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Generate Documentation
run: |
rm -rf .phpdoc
wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
php phpDocumentor.phar
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .phpdoc/build
18 changes: 0 additions & 18 deletions .github/workflows/release-github-pages.yml

This file was deleted.

4 changes: 0 additions & 4 deletions docs/app-registration.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/index.md

This file was deleted.

0 comments on commit 4e9569a

Please sign in to comment.