diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index 59258e3e..6798de11 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -40,6 +40,6 @@ jobs: - name: Upload Swagger Documentation to SwaggerHub 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: SWAGGERHUB_API_KEY: ${{ secrets.SWAGGERHUB_API_KEY }} diff --git a/build.gradle b/build.gradle index 6c2095f0..478ee5b4 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ repositories { openApi { apiDocsUrl = "http://localhost:8080/v3/api-docs" - outputDir = file("/") + outputDir = file("$projectDir") outputFileName = "SwaggerDoc.json" }