Skip to content

Commit

Permalink
Merge pull request #1275 from ds-ashanmugavel/chore/xxxx-action
Browse files Browse the repository at this point in the history
chore[XXXX]: updated action
  • Loading branch information
ds-lcapellino authored Jul 23, 2024
2 parents 05b1277 + 0839b08 commit 38b89ff
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/publish-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ name: "[BE][FE][DOCUMENTATION] Publish documentation"

on:
workflow_dispatch: # Trigger manually
pull_request:
paths:
- 'docs/**'
push:
branches:
- main
paths:
- 'docs/**'

jobs:
publish:
Expand Down Expand Up @@ -58,11 +63,6 @@ jobs:
restore-keys: ${{ runner.os }}-m2


- name: Build API documentation with Maven
run: |
mvn clean package -pl tx-backend,tx-models -DskipTests --batch-mode
cp tx-backend/target/generated-sources/openapi/index.html docs/src/docs/api-specification/index.html
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
Expand Down Expand Up @@ -127,9 +127,24 @@ jobs:
run: |
mv docs/src/diagram-replacer/assets/ docs/target/generated-docs/assets/
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v4.0.0
- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
with:
output: swagger-ui
spec-file: docs/api/traceability-foss-backend.json

- name: Update documentation on GitHub Pages
if: github.ref == 'refs/heads/main'
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"
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ _**For better traceability add the corresponding GitHub issue number in each cha
### Changed
- #1070 Convert png to svg according to TRG 1.04 - Diagrams as code / Editable static files
- #xxx update IRS chart version from 7.3.1 to 7.4.0
- XXXX updated publish documentation action

## [13.0.0 - 19.07.2024]

Expand All @@ -35,7 +36,6 @@ _**For better traceability add the corresponding GitHub issue number in each cha
- #941 made the naming for quality notifications consistent throughout the FE app
- #1190 store accepted policies in catalog offers on startup
- #941 updated labels from QualityTopic to QualityNotification

### Known knowns
- #786 Implemented short term solution for securing EDC Callback APIs
- #1190 CatalogOffers are not able to provide OR constraints therefore notifications are not processed correctly on wrong policy
Expand Down

0 comments on commit 38b89ff

Please sign in to comment.