Skip to content

Commit

Permalink
Update api-doc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
psmagin authored Apr 19, 2024
1 parent 8661090 commit 241b4f3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/api-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ name: api-doc

env:
API_TYPES: 'OAS'
API_DIRECTORIES: 'src/main/resources/swagger.api'
API_EXCLUDES: 'paths responses'
API_DIRECTORIES: 'target/api/openapi'
API_INPUT_SPEC: 'src/main/resources/swagger.api/mod-entities-links.yaml'
API_EXCLUDES: ''
OUTPUT_DIR: 'folio-api-docs'
AWS_S3_BUCKET: 'foliodocs'
AWS_S3_FOLDER: 'api'
Expand All @@ -43,6 +44,13 @@ jobs:
with:
ref: ${{ github.REF }}
submodules: recursive
- name: Build spec
uses: s4u/[email protected]
run: |
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
- name: Prepare folio-tools
run: |
git clone https://github.com/folio-org/folio-tools
Expand Down Expand Up @@ -88,4 +96,3 @@ jobs:
destination_prefix: ${{ env.AWS_S3_FOLDER }}
delete: false
quiet: false

0 comments on commit 241b4f3

Please sign in to comment.