Skip to content

Commit

Permalink
feat(impl):[#500] publish swagger ui in github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-ext-kmassalski committed Apr 22, 2024
1 parent e47c5e5 commit 69156c9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/publish-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,26 @@ jobs:
run: |
mv docs/src/diagram-replacer/assets/ docs/target/generated-docs/assets/
- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
with:
output: swagger-ui
spec-file: docs/src/api/irs-api.yaml

- name: Update documentation on GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3.9.3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "./docs/target/generated-docs"
destination_dir: "docs"

- name: Deploy Swagger UI to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "swagger-ui"
destination_dir: "docs/swagger-ui"


3 changes: 3 additions & 0 deletions docs/src/docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ xref:administration/administration-guide.adoc[]
== API-Documentation
xref:api-specification/api-specification.adoc[OpenApi specification]

== Swagger-UI
xref:swagger-ui/index.adoc[Swagger-UI]

== Architecture Documentation (arc42)
- xref:arc42/index.adoc[Single chapters]
- xref:arc42/full.adoc[Full document]
Expand Down
13 changes: 13 additions & 0 deletions docs/src/docs/swagger-ui/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
= Swagger-UI

== NOTICE

This work is licensed under the https://www.apache.org/licenses/LICENSE-2.0[Apache-2.0].

- SPDX-License-Identifier: Apache-2.0
- SPDX-FileCopyrightText: 2021, 2023 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
- SPDX-FileCopyrightText: 2022, 2023 BOSCH AG
- SPDX-FileCopyrightText: 2021, 2022 ZF Friedrichshafen AG
- SPDX-FileCopyrightText: 2022 ISTOS GmbH
- SPDX-FileCopyrightText: 2021, 2023 Contributors to the Eclipse Foundation
- Source URL: https://github.com/eclipse-tractusx/item-relationship-service

0 comments on commit 69156c9

Please sign in to comment.