Skip to content

Commit

Permalink
Merge pull request #213 from koriym/pcd
Browse files Browse the repository at this point in the history
Add PHP class diagram
  • Loading branch information
koriym committed Jun 3, 2024
2 parents 41e5af6 + d1b79b7 commit 941db40
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
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">

0 comments on commit 941db40

Please sign in to comment.