diff --git a/.github/workflows/accounting_generate.yaml b/.github/workflows/accounting_generate.yaml index 079657716..67174929a 100644 --- a/.github/workflows/accounting_generate.yaml +++ b/.github/workflows/accounting_generate.yaml @@ -6,19 +6,20 @@ name: Generate Accounting library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml - languages: |- - - python: ./previous-versions/accounting - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: accounting-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/accounting_release.yaml b/.github/workflows/accounting_release.yaml index 88c5d2d66..b0974a679 100644 --- a/.github/workflows/accounting_release.yaml +++ b/.github/workflows/accounting_release.yaml @@ -7,10 +7,7 @@ name: Release Accounting library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/assess_generate.yaml b/.github/workflows/assess_generate.yaml index b1f150ed3..3857721ac 100644 --- a/.github/workflows/assess_generate.yaml +++ b/.github/workflows/assess_generate.yaml @@ -6,19 +6,20 @@ name: Generate Assess library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Assess.yaml - languages: |- - - python: ./previous-versions/assess - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: assess-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/assess_release.yaml b/.github/workflows/assess_release.yaml index cf10dcace..c7a6eca67 100644 --- a/.github/workflows/assess_release.yaml +++ b/.github/workflows/assess_release.yaml @@ -7,10 +7,7 @@ name: Release Assess library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/bank_feeds_generate.yaml b/.github/workflows/bank_feeds_generate.yaml index f5e7bd418..d6e221d18 100644 --- a/.github/workflows/bank_feeds_generate.yaml +++ b/.github/workflows/bank_feeds_generate.yaml @@ -6,19 +6,20 @@ name: Generate Bank Feeds library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml - languages: |- - - python: ./bank-feeds - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: bank-feeds-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/bank_feeds_release.yaml b/.github/workflows/bank_feeds_release.yaml index e6a6890e1..af107b330 100644 --- a/.github/workflows/bank_feeds_release.yaml +++ b/.github/workflows/bank_feeds_release.yaml @@ -7,10 +7,7 @@ name: Release Bank Feeds library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/banking_generate.yaml b/.github/workflows/banking_generate.yaml index 70a040d4f..35e0e0c95 100644 --- a/.github/workflows/banking_generate.yaml +++ b/.github/workflows/banking_generate.yaml @@ -6,19 +6,20 @@ name: Generate Banking library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml - languages: |- - - python: ./previous-versions/banking - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: banking-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/banking_release.yaml b/.github/workflows/banking_release.yaml index 8e27a0afb..c50e8db82 100644 --- a/.github/workflows/banking_release.yaml +++ b/.github/workflows/banking_release.yaml @@ -7,10 +7,7 @@ name: Release Banking library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/commerce_generate.yaml b/.github/workflows/commerce_generate.yaml index ea81f3aa1..5f018ad71 100644 --- a/.github/workflows/commerce_generate.yaml +++ b/.github/workflows/commerce_generate.yaml @@ -6,19 +6,20 @@ name: Generate Commerce library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml - languages: |- - - python: ./previous-versions/commerce - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: commerce-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/commerce_release.yaml b/.github/workflows/commerce_release.yaml index c946132b6..fd44cdef1 100644 --- a/.github/workflows/commerce_release.yaml +++ b/.github/workflows/commerce_release.yaml @@ -7,10 +7,7 @@ name: Release Commerce library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/common_generate.yaml b/.github/workflows/common_generate.yaml index 7b755a5b7..af506b8f4 100644 --- a/.github/workflows/common_generate.yaml +++ b/.github/workflows/common_generate.yaml @@ -6,19 +6,20 @@ name: Generate Common library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Platform.yaml - languages: |- - - python: ./previous-versions/common - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: common-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/common_release.yaml b/.github/workflows/common_release.yaml index cfc77ea9e..2bcb134c1 100644 --- a/.github/workflows/common_release.yaml +++ b/.github/workflows/common_release.yaml @@ -7,10 +7,7 @@ name: Release Common library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/files_generate.yaml b/.github/workflows/files_generate.yaml index a01f0a657..7d5594a59 100644 --- a/.github/workflows/files_generate.yaml +++ b/.github/workflows/files_generate.yaml @@ -6,19 +6,20 @@ name: Generate Files library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml - languages: |- - - python: ./previous-versions/files - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: files-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/files_release.yaml b/.github/workflows/files_release.yaml index 3e18f481a..10678ca47 100644 --- a/.github/workflows/files_release.yaml +++ b/.github/workflows/files_release.yaml @@ -7,10 +7,7 @@ name: Release Files library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/lending_generate.yaml b/.github/workflows/lending_generate.yaml index 77e45f824..87ded0070 100644 --- a/.github/workflows/lending_generate.yaml +++ b/.github/workflows/lending_generate.yaml @@ -6,19 +6,20 @@ name: Generate Lending library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml - languages: |- - - python: ./lending - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: lending-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/lending_release.yaml b/.github/workflows/lending_release.yaml index d7bbad986..85ab3d43c 100644 --- a/.github/workflows/lending_release.yaml +++ b/.github/workflows/lending_release.yaml @@ -7,10 +7,7 @@ name: Release Lending library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/platform_generate.yaml b/.github/workflows/platform_generate.yaml index 1c0d39f18..969f1e2f0 100644 --- a/.github/workflows/platform_generate.yaml +++ b/.github/workflows/platform_generate.yaml @@ -6,19 +6,20 @@ name: Generate Platform library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Platform.yaml - languages: |- - - python: ./platform - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: platform-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/platform_release.yaml b/.github/workflows/platform_release.yaml index b4f84da77..348fb5c19 100644 --- a/.github/workflows/platform_release.yaml +++ b/.github/workflows/platform_release.yaml @@ -7,10 +7,7 @@ name: Release Platform library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/sync_for_commerce_generate.yaml b/.github/workflows/sync_for_commerce_generate.yaml index f692f4f4e..55299050a 100644 --- a/.github/workflows/sync_for_commerce_generate.yaml +++ b/.github/workflows/sync_for_commerce_generate.yaml @@ -6,19 +6,20 @@ name: Generate Sync for Commerce library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce.yaml - languages: |- - - python: ./sync-for-commerce - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: sync-for-commerce-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_commerce_release.yaml b/.github/workflows/sync_for_commerce_release.yaml index 84486a6a1..fc158ebdb 100644 --- a/.github/workflows/sync_for_commerce_release.yaml +++ b/.github/workflows/sync_for_commerce_release.yaml @@ -7,10 +7,7 @@ name: Release Sync for Commerce library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/sync_for_commerce_version_1_generate.yaml b/.github/workflows/sync_for_commerce_version_1_generate.yaml index 8c505e6bf..0489c4cff 100644 --- a/.github/workflows/sync_for_commerce_version_1_generate.yaml +++ b/.github/workflows/sync_for_commerce_version_1_generate.yaml @@ -6,19 +6,20 @@ name: Generate Sync for Commerce version 1 library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce-v1.yaml - languages: |- - - python: ./previous-versions/sync-for-commerce-version-1 - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: sync-for-commerce-version-1-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_commerce_version_1_release.yaml b/.github/workflows/sync_for_commerce_version_1_release.yaml index 1f9731864..249f39f7c 100644 --- a/.github/workflows/sync_for_commerce_version_1_release.yaml +++ b/.github/workflows/sync_for_commerce_version_1_release.yaml @@ -7,10 +7,7 @@ name: Release Sync for Commerce version 1 library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/sync_for_expenses_generate.yaml b/.github/workflows/sync_for_expenses_generate.yaml index a19d8e7f2..39ea556f9 100644 --- a/.github/workflows/sync_for_expenses_generate.yaml +++ b/.github/workflows/sync_for_expenses_generate.yaml @@ -6,19 +6,20 @@ name: Generate Sync for Expenses library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml - languages: |- - - python: ./sync-for-expenses - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: sync-for-expenses-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_expenses_release.yaml b/.github/workflows/sync_for_expenses_release.yaml index 2218ad3ef..47f008208 100644 --- a/.github/workflows/sync_for_expenses_release.yaml +++ b/.github/workflows/sync_for_expenses_release.yaml @@ -7,10 +7,7 @@ name: Release Sync for Expenses library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/sync_for_expenses_version_1_generate.yaml b/.github/workflows/sync_for_expenses_version_1_generate.yaml index c71822fdd..51cfd495e 100644 --- a/.github/workflows/sync_for_expenses_version_1_generate.yaml +++ b/.github/workflows/sync_for_expenses_version_1_generate.yaml @@ -6,19 +6,20 @@ name: Generate Sync for Expenses version 1 library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses-v1.yaml - languages: |- - - python: ./previous-versions/sync-for-expenses-version-1 - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: sync-for-expenses-version-1-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_expenses_version_1_release.yaml b/.github/workflows/sync_for_expenses_version_1_release.yaml index 747837a81..eee28112a 100644 --- a/.github/workflows/sync_for_expenses_version_1_release.yaml +++ b/.github/workflows/sync_for_expenses_version_1_release.yaml @@ -7,10 +7,7 @@ name: Release Sync for Expenses version 1 library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/sync_for_payables_generate.yaml b/.github/workflows/sync_for_payables_generate.yaml index 28b1da9a4..cce3c7863 100644 --- a/.github/workflows/sync_for_payables_generate.yaml +++ b/.github/workflows/sync_for_payables_generate.yaml @@ -6,19 +6,20 @@ name: Generate Sync for Payables library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml - languages: |- - - python: ./sync-for-payables - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: sync-for-payables secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_payables_release.yaml b/.github/workflows/sync_for_payables_release.yaml index 603da6d1b..66e306b02 100644 --- a/.github/workflows/sync_for_payables_release.yaml +++ b/.github/workflows/sync_for_payables_release.yaml @@ -7,10 +7,7 @@ name: Release Sync for Payables library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.github/workflows/sync_for_payables_version_1_generate.yaml b/.github/workflows/sync_for_payables_version_1_generate.yaml new file mode 100644 index 000000000..8b02e14c1 --- /dev/null +++ b/.github/workflows/sync_for_payables_version_1_generate.yaml @@ -0,0 +1,25 @@ +name: Generate Sync for Payables version 1 library +'on': + workflow_dispatch: + inputs: + force: + description: Force generation of SDKs + type: boolean + default: false + set_version: + description: Optionally set a specific SDK version. + type: string +jobs: + generate: + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + with: + mode: pr + speakeasy_version: latest + force: ${{ github.event.inputs.force }} + set_version: ${{ github.event.inputs.set_version }} + target: sync-for-payables-version-1-library + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_payables_version_1_release.yaml b/.github/workflows/sync_for_payables_version_1_release.yaml new file mode 100644 index 000000000..7345a118a --- /dev/null +++ b/.github/workflows/sync_for_payables_version_1_release.yaml @@ -0,0 +1,15 @@ +name: Release Sync for Payables version 1 library +'on': + push: + paths: + - previous-versions/sync-for-payables-version-1/RELEASES.md + branches: + - main +jobs: + publish: + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} + slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_payroll_generate.yaml b/.github/workflows/sync_for_payroll_generate.yaml index 8593a639b..c20143858 100644 --- a/.github/workflows/sync_for_payroll_generate.yaml +++ b/.github/workflows/sync_for_payroll_generate.yaml @@ -6,19 +6,20 @@ name: Generate Sync for Payroll library description: Force generation of SDKs type: boolean default: false + set_version: + description: Optionally set a specific SDK version. + type: string jobs: generate: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14 + uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 with: - speakeasy_version: latest - openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payroll.yaml - languages: |- - - python: ./sync-for-payroll - create_release: true mode: pr + speakeasy_version: latest force: ${{ github.event.inputs.force }} - publish_python: true + set_version: ${{ github.event.inputs.set_version }} + target: sync-for-payroll-library secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/sync_for_payroll_release.yaml b/.github/workflows/sync_for_payroll_release.yaml index c46f54dac..4d1353fe3 100644 --- a/.github/workflows/sync_for_payroll_release.yaml +++ b/.github/workflows/sync_for_payroll_release.yaml @@ -7,10 +7,7 @@ name: Release Sync for Payroll library - main jobs: publish: - uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14 - with: - create_release: true - publish_python: true + uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 secrets: github_access_token: ${{ secrets.GITHUB_TOKEN }} speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml new file mode 100644 index 000000000..c8f214d5e --- /dev/null +++ b/.speakeasy/workflow.yaml @@ -0,0 +1,174 @@ +workflowVersion: 1.0.0 +speakeasyVersion: latest +sources: + accounting-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Accounting.yaml + assess-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Assess.yaml + bank-feeds-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml + registry: + location: registry.speakeasyapi.dev/codat/codat/bank-feeds-source + banking-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Banking.yaml + commerce-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Commerce.yaml + common-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Platform.yaml + files-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Files.yaml + lending-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml + platform-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Platform.yaml + registry: + location: registry.speakeasyapi.dev/codat/codat/platform-source + sync-for-commerce-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce.yaml + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-commerce-source + sync-for-commerce-version-1-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce-v1.yaml + sync-for-expenses-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-expenses-source + sync-for-expenses-version-1-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses-v1.yaml + sync-for-payables-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml + sync-for-payables-version-1-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml + sync-for-payroll-source: + inputs: + - location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payroll.yaml + registry: + location: registry.speakeasyapi.dev/codat/codat/sync-for-payroll-source +targets: + accounting-library: + target: python + source: accounting-source + output: previous-versions/accounting + publish: + pypi: + token: $pypi_token + assess-library: + target: python + source: assess-source + output: previous-versions/assess + publish: + pypi: + token: $pypi_token + bank-feeds-library: + target: python + source: bank-feeds-source + output: bank-feeds + publish: + pypi: + token: $pypi_token + banking-library: + target: python + source: banking-source + output: previous-versions/banking + publish: + pypi: + token: $pypi_token + commerce-library: + target: python + source: commerce-source + output: previous-versions/commerce + publish: + pypi: + token: $pypi_token + common-library: + target: python + source: common-source + output: previous-versions/common + publish: + pypi: + token: $pypi_token + files-library: + target: python + source: files-source + output: previous-versions/files + publish: + pypi: + token: $pypi_token + lending-library: + target: python + source: lending-source + output: lending + publish: + pypi: + token: $pypi_token + platform-library: + target: python + source: platform-source + output: platform + publish: + pypi: + token: $pypi_token + sync-for-commerce-library: + target: python + source: sync-for-commerce-source + output: sync-for-commerce + publish: + pypi: + token: $pypi_token + sync-for-commerce-version-1-library: + target: python + source: sync-for-commerce-version-1-source + output: previous-versions/sync-for-commerce-version-1 + publish: + pypi: + token: $pypi_token + sync-for-expenses-library: + target: python + source: sync-for-expenses-source + output: sync-for-expenses + publish: + pypi: + token: $pypi_token + sync-for-expenses-version-1-library: + target: python + source: sync-for-expenses-version-1-source + output: previous-versions/sync-for-expenses-version-1 + publish: + pypi: + token: $pypi_token + sync-for-payables-library: + target: python + source: sync-for-payables-source + output: sync-for-payables + publish: + pypi: + token: $pypi_token + sync-for-payables-version-1-library: + target: python + source: sync-for-payables-version-1-source + output: previous-versions/sync-for-payables-version-1 + publish: + pypi: + token: $pypi_token + sync-for-payroll-library: + target: python + source: sync-for-payroll-source + output: sync-for-payroll + publish: + pypi: + token: $pypi_token \ No newline at end of file