Skip to content

Commit 91fa3be

Browse files
committed
PI-2374: Add deployment stage to publishing workflow
1 parent ea62141 commit 91fa3be

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/publish-docs.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,26 @@ jobs:
3838
working-directory: tech-docs/build
3939
- uses: actions/upload-artifact@v4
4040
with:
41-
path: tech-docs/build
41+
name: documentation
42+
path: tech-docs/build/
43+
44+
deploy:
45+
runs-on: ubuntu-latest
46+
if: github.ref_name == 'main' || (github.event_name == 'workflow_dispatch')
47+
needs:
48+
- build
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: actions/download-artifact@v4
52+
with:
53+
name: documentation
54+
folder: tech-docs-build
55+
- name: debug
56+
run: |
57+
ls -la
58+
ls -laR tech-docs-build
59+
60+
- name: Deploy
61+
uses: JamesIves/github-pages-deploy-action@920cbb300dcd3f0568dbc42700c61e2fd9e6139c # v4.6.4
62+
with:
63+
folder: tech-docs-build

tech-docs/config/tech-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ show_contribution_banner: true
3737
github_repo: ministryofjustice/hmpps-integration-api-docs
3838
github_branch: main
3939

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

tech-docs/source/documentation/api/index.html.md.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ last_reviewed_on: 2024-09-03
66
review_in: 3 months
77
---
88

9-
api>
9+
# API Docs
1010

1111
## OpenAPI Specification
1212

0 commit comments

Comments
 (0)