File tree 5 files changed +17
-14
lines changed
5 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -15,43 +15,46 @@ permissions:
15
15
id-token : write
16
16
17
17
jobs :
18
- build :
18
+ # Build mdbook
19
+ build-mdbook :
19
20
runs-on : ubuntu-latest
20
- strategy :
21
- matrix :
22
- service :
23
- - account
24
- - content-watcher
25
- - content-publishing
26
- - graph
27
-
28
21
steps :
29
22
- name : Checkout
30
23
uses : actions/checkout@v4
31
24
32
25
- name : Set up mdBook 📚
33
- if : matrix.service == 'account' # Only upload mdbook once
34
26
uses : ./.github/workflows/common/set-up-mdbook
35
27
with :
36
28
token : ${{secrets.GITHUB_TOKEN}}
37
29
- name : Setup Pages
38
- if : matrix.service == 'account' # Only setup Pages once
39
30
id : pages
40
31
uses : actions/configure-pages@v4
41
32
42
33
- name : Build with mdBook
43
- if : matrix.service == 'account' # Only build mdbook once
44
34
working-directory : docs
45
35
run : mdbook build && ls book
46
36
47
37
# Upload the mdBook output to GitHub Pages
48
38
- name : Upload mdbook to GitHub Pages
49
- if : matrix.service == 'account' # Only upload mdbook once
50
39
uses : actions/upload-artifact@v4
51
40
with :
52
41
name : mdbook
53
42
path : ./docs
54
43
44
+ build :
45
+ runs-on : ubuntu-latest
46
+ strategy :
47
+ matrix :
48
+ service :
49
+ - account
50
+ - content-watcher
51
+ - content-publishing
52
+ - graph
53
+
54
+ steps :
55
+ - name : Checkout
56
+ uses : actions/checkout@v4
57
+
55
58
# Publish OpenAPI specs for each microservice
56
59
- name : Build and Publish OpenAPI spec for ${{ matrix.service }}
57
60
uses : ./.github/workflows/common/openapi-build
68
71
deploy :
69
72
name : Deploy mdbook and OpenAPI microservices to GitHub Pages
70
73
runs-on : ubuntu-latest
71
- needs : build
74
+ needs : [ build, build-mdbook]
72
75
environment :
73
76
name : github-pages
74
77
url : ${{ steps.deployment.outputs.page_url }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments