File tree 3 files changed +27
-4
lines changed
3 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 34
34
working-directory : tech-docs
35
35
- name : Bundle OpenAPI specs
36
36
run : |
37
- curl -sf localhost:8080/v3/api-docs -o api-docs.json
37
+ mkdir openapi
38
+ curl -sf localhost:8080/v3/api-docs -o openapi/api-docs.json
38
39
working-directory : tech-docs/build
39
40
- uses : actions/upload-artifact@v4
40
41
with :
41
- path : tech-docs/build
42
+ name : documentation
43
+ path : tech-docs/build/
44
+
45
+ deploy :
46
+ runs-on : ubuntu-latest
47
+ if : github.ref_name == 'main' || (github.event_name == 'workflow_dispatch')
48
+ needs :
49
+ - build
50
+ steps :
51
+ - uses : actions/checkout@v4
52
+ - uses : actions/download-artifact@v4
53
+ with :
54
+ name : documentation
55
+ path : tech-docs-build
56
+ - name : debug
57
+ run : |
58
+ ls -la
59
+ ls -laR tech-docs-build
60
+
61
+ - name : Deploy
62
+ uses : JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4.6.4
63
+ with :
64
+ folder : tech-docs-build
Original file line number Diff line number Diff line change @@ -37,4 +37,4 @@ show_contribution_banner: true
37
37
github_repo : ministryofjustice/hmpps-integration-api-docs
38
38
github_branch : main
39
39
40
- api_path : https://ministryofjustice.github.io/hmpps-integration-api/openapi/api-docs.json
40
+ # api_path: https://ministryofjustice.github.io/hmpps-integration-api/openapi/api-docs.json
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ last_reviewed_on: 2024-09-03
6
6
review_in: 3 months
7
7
---
8
8
9
- api >
9
+ # API Docs
10
10
11
11
## OpenAPI Specification
12
12
You can’t perform that action at this time.
0 commit comments