diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml new file mode 100644 index 0000000..02e2003 --- /dev/null +++ b/.github/workflows/upload-to-stainless.yml @@ -0,0 +1,17 @@ +name: Upload OpenAPI Spec to Stainless +on: + push: + branches: + - [main] + +jobs: + stainless: + runs-on: ubuntu-latest + name: Stainless — Upload OpenAPI specification + steps: + - uses: actions/checkout@v4 + - uses: stainless-api/upload-openapi-spec-action@v0.2.1 + with: + stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} + input_path: "openapi.yaml" + project_name: 'togetherai'