Skip to content

Commit

Permalink
Modify apidoc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
viacheslavkol committed Jan 13, 2025
1 parent 5cd6f84 commit b2242d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/api-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name: api-doc

env:
API_TYPES: 'OAS'
API_DIRECTORIES: 'target/api/openapi'
API_DIRECTORIES: 'src/main/resources/swagger.api'
API_INPUT_SPEC: 'src/main/resources/swagger.api/mod-search.yaml'
API_EXCLUDES: ''
OUTPUT_DIR: 'folio-api-docs'
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
mvn openapi-generator:generate \
-Dopenapi.generator.maven.plugin.inputSpec=${{ env.API_INPUT_SPEC }} \
-Dopenapi.generator.maven.plugin.generatorName=openapi-yaml \
-Dopenapi.generator.maven.plugin.output=target/api \
-Dopenapi.generator.maven.plugin.output=${{ env.API_DIRECTORIES }} \
-Dopenapi.generator.maven.plugin.additionalProperties=outputFile=openapi/mod-search.yaml
- name: Prepare folio-tools
run: |
Expand Down Expand Up @@ -87,9 +87,6 @@ jobs:
- name: Show generated files
working-directory: ${{ env.OUTPUT_DIR }}
run: ls -R
- name: Fix dead link
run: jq '.config.oas.files[] |= if . == "${{ env.API_DIRECTORIES }}/mod-search.yaml" then "${{ env.API_INPUT_SPEC }}" else . end' */config-doc.json > tmp.json && mv tmp.json */config-doc.json
working-directory: ${{ env.OUTPUT_DIR }}
- name: Publish to AWS S3
uses: sai-sharan/[email protected]
with:
Expand Down

0 comments on commit b2242d9

Please sign in to comment.