diff --git a/.github/workflows/generate-client.yml b/.github/workflows/generate-client.yml new file mode 100644 index 000000000..723d01af5 --- /dev/null +++ b/.github/workflows/generate-client.yml @@ -0,0 +1,18 @@ +name: Upload OpenAPI spec to Stainless + +on: + push: + branches: [main] + +jobs: + stainless: + concurrency: upload-openapi-spec-action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: stainless-api/upload-openapi-spec-action@main + with: + stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} + input_path: "crates/jstz_node/openapi.json" + config_path: "crates/jstz_node/stainless.yml" + project_name: "jstz-client" diff --git a/.github/workflows/generate-node-client.yml b/.github/workflows/generate-node-client.yml index 0bfaba7d7..723d01af5 100644 --- a/.github/workflows/generate-node-client.yml +++ b/.github/workflows/generate-node-client.yml @@ -1,7 +1,6 @@ name: Upload OpenAPI spec to Stainless on: - pull_request: # testing only push: branches: [main]