diff --git a/.github/workflows/upload-to-stainless.yml b/.github/workflows/upload-to-stainless.yml new file mode 100644 index 00000000..d18b0745 --- /dev/null +++ b/.github/workflows/upload-to-stainless.yml @@ -0,0 +1,16 @@ +name: Upload to Stainless +on: + push: + branches: + - master + +jobs: + upload_to_stainless: + runs-on: ubuntu-latest + name: Stainless — Upload OpenAPI specification + steps: + - uses: actions/checkout@v3 + - uses: stainless-api/upload-openapi-spec-action@v0.2.1 + with: + stainless_api_key: ${{ secrets.STAINLESS_API_KEY }} + input_path: "openapi.yaml" diff --git a/.github/workflows/main.yml b/.github/workflows/validate-openapi.yml similarity index 94% rename from .github/workflows/main.yml rename to .github/workflows/validate-openapi.yml index bbe92ae5..b7cce206 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/validate-openapi.yml @@ -4,7 +4,7 @@ on: types: [opened, reopened, synchronize] jobs: - test_swagger_editor_validator_service: + validate_openapi: runs-on: ubuntu-latest name: Swagger Editor Validator Service