diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml index 4628deb..eec7008 100644 --- a/.github/workflows/upload-to-stainless.yml +++ b/.github/workflows/upload-to-stainless.yml @@ -3,6 +3,7 @@ on: push: branches: - main + workflow_dispatch: jobs: stainless: @@ -10,8 +11,12 @@ jobs: name: Stainless — Upload OpenAPI specification steps: - uses: actions/checkout@v4 - - uses: stainless-api/upload-openapi-spec-action@v0.2.1 + - uses: stainless-api/upload-openapi-spec-action@main with: stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} - input_path: "openapi.yaml" - project_name: 'togetherai' + input_path: 'openapi.yaml' + output_path: 'openapi.documented.yaml' + project_name: 'TogetherAI' + - uses: readmeio/rdme@v8 + with: + rdme: openapi "openapi.documented.yaml" --key=${{ secrets.README_TOKEN }} --id=${{ secrets.README_DEFINITION_ID }}