diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index 4ed4f577..1403c12f 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -26,6 +26,7 @@ jobs: run: ./gradlew generateOpenApiDocs - name: Upload Swagger Documentation to SwaggerHub - run: ./gradlew swaggerhubUpload + run: | + curl -X PUT -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 }}