-
Notifications
You must be signed in to change notification settings - Fork 27
42 lines (36 loc) · 1.09 KB
/
php-class-diagram.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 }}
options: --hide-private-methods
- 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