diff --git a/.github/workflows/api-doc.yml b/.github/workflows/api-doc.yml index 1f8b5741e..cb1dbb40f 100644 --- a/.github/workflows/api-doc.yml +++ b/.github/workflows/api-doc.yml @@ -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' @@ -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: | @@ -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/aws-s3-sync-action@v0.1.0 with: