-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (72 loc) · 2.06 KB
/
buildGithubPage.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: "Publish documentation"
on:
push:
branches:
- "features/dka/docs"
jobs:
check-changes-api-doc:
name: Check for changes in api documentation
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: dorny/paths-filter@v3
id: api-doc-change
with:
filters: |
src:
- 'api/**'
outputs:
changed: ${{steps.api-doc-change.outputs.changed}}
check-changes-client-doc:
name: Check for changes in client documentation
runs-on: ubuntu-latest
permissions: read-all
steps:
- uses: dorny/paths-filter@v3
id: client-doc-change
with:
filters: |
src:
- 'client/**'
outputs:
changed: ${{steps.client-doc-change.outputs.changed}}
publish-api-documentation:
name: Publish api documentation
needs: check-changes-api-doc
if: ${{needs.api-doc-change.outputs.changed == 'true'}}
permissions:
id-token: "write"
pages: "write"
runs-on: "ubuntu-latest"
steps:
- id: "checkout"
name: "Check out Git repository"
uses: "actions/checkout@v3"
- id: "upload-documentation"
name: "Upload Pages artifact"
uses: "actions/upload-pages-artifact@v2"
with:
path: "api/"
- id: "deployment"
name: "Deploy documentation to GitHub Pages"
uses: "actions/deploy-pages@v2"
publish-client-documentation:
name: Publish client documentation
needs: check-changes-client-doc
if: ${{needs.client-doc-change.outputs.changed == 'true'}}
permissions:
id-token: "write"
pages: "write"
runs-on: "ubuntu-latest"
steps:
- id: "checkout"
name: "Check out Git repository"
uses: "actions/checkout@v3"
- id: "upload-documentation"
name: "Upload Pages artifact"
uses: "actions/upload-pages-artifact@v2"
with:
path: "client/"
- id: "deployment"
name: "Deploy documentation to GitHub Pages"
uses: "actions/deploy-pages@v2"