Skip to content

Commit

Permalink
Merge pull request #11 from eclipse-tractusx/generate_index_for_gh_pages
Browse files Browse the repository at this point in the history
feat: Generate index for API gh pages
  • Loading branch information
tomaszbarwicki authored Jul 11, 2024
2 parents ae6073c + 2828f57 commit 9a83bb2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,20 @@ jobs:
run: |
FILE_PATH="${{ matrix.specs }}"
DIR_PATH=$(dirname "${FILE_PATH}")
PRODUCT_PATH=$(dirname "${DIR_PATH}")
RANDOM=$(uuidgen)
echo "DIR_PATH=${DIR_PATH}" >> $GITHUB_OUTPUT
echo "PRODUCT_PATH=${PRODUCT_PATH}" >> $GITHUB_OUTPUT
echo "RANDOM=${RANDOM}" >> $GITHUB_OUTPUT
- name: Generate Swagger UI
uses: Legion2/swagger-ui-action@v1
with:
output: ${{ steps.determine_directory.outputs.DIR_PATH }}/swagger-ui
spec-file: ${{ matrix.specs }}
- name: Generate Directory Listings
uses: jayanta525/[email protected]
with:
FOLDER: ${{ steps.determine_directory.outputs.PRODUCT_PATH }}
- uses: actions/upload-artifact@v4
with:
name: swagger-${{ steps.determine_directory.outputs.RANDOM }}
Expand All @@ -117,6 +123,10 @@ jobs:
path: docs
pattern: swagger-*
merge-multiple: true
- name: Generate Directory Listings
uses: jayanta525/[email protected]
with:
FOLDER: docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 9a83bb2

Please sign in to comment.