@./SwaggerDoc.json

This commit is contained in:
Anthony Stirling 2023-06-03 23:01:14 +01:00
parent c526e18992
commit 1f5231d905
2 changed files with 2 additions and 2 deletions

View file

@ -40,6 +40,6 @@ jobs:
- name: Upload Swagger Documentation to SwaggerHub - name: Upload Swagger Documentation to SwaggerHub
run: | run: |
curl -X POST -H "Authorization: ${SWAGGERHUB_API_KEY}" -H "Content-Type: application/json" -d @SwaggerDoc.json "https://api.swaggerhub.com/apis/Frooodle/Stirling-PDF/${{ steps.versionNumber.outputs.versionNumber }}?isPrivate=false&force=true" curl -X POST -H "Authorization: ${SWAGGERHUB_API_KEY}" -H "Content-Type: application/json" -d @./SwaggerDoc.json "https://api.swaggerhub.com/apis/Frooodle/Stirling-PDF/${{ steps.versionNumber.outputs.versionNumber }}?isPrivate=false&force=true"
env: env:
SWAGGERHUB_API_KEY: ${{ secrets.SWAGGERHUB_API_KEY }} SWAGGERHUB_API_KEY: ${{ secrets.SWAGGERHUB_API_KEY }}

View file

@ -15,7 +15,7 @@ repositories {
openApi { openApi {
apiDocsUrl = "http://localhost:8080/v3/api-docs" apiDocsUrl = "http://localhost:8080/v3/api-docs"
outputDir = file("/") outputDir = file("$projectDir")
outputFileName = "SwaggerDoc.json" outputFileName = "SwaggerDoc.json"
} }