Skip to content

Commit

Permalink
fixup! fixup! Add workflow to generate PHP class diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Jun 2, 2024
1 parent fb0dac1 commit b961ae2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/php-class-diagram.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,28 @@ jobs:
- 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: php-class-diagram.svg
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: php-class-diagram.svg
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: ${{ steps.pcd.outputs.dir}}
destination_dir: ${{ steps.pcd.outputs.dir}}
publish_dir: ./images
destination_dir: ./images

0 comments on commit b961ae2

Please sign in to comment.