Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PHP class diagram #213

Merged
merged 7 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/php-class-diagram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: PHP Class Diagram

on:
push:
pull_request:
workflow_dispatch:

jobs:
pcd:
runs-on: ubuntu-latest
name: PHP Class Diagram
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Create output directory
run: mkdir -p images

- name: Create class diagram
id: create-class-diagram
uses: smeghead/php-class-diagram-gh-action@v0
with:
target-path: src
output-path: ./images/php-class-diagram.svg
target-repo: ${{ github.repository }}
target-branch: ${{ github.ref_name }}

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Class_Diagram
path: ./images/php-class-diagram.svg
retention-days: 5

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./images
destination_dir: ./images
force_orphan: true
4 changes: 4 additions & 0 deletions docs/php-class-diagram.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# PHP Class Diagram

<a href="https://ray-di.github.io/Ray.Aop/images/php-class-diagram.svg"><img src="https://ray-di.github.io/Ray.Aop/images/php-class-diagram.svg" alt="php class diagram">

Loading