Speakeasy Logo
Skip to Content

Migrate to Speakeasy workflows

The workflow.yaml file allows defining all the relevant pieces of SDK generation as consistent configs in a single place. This new generation system is entirely portable. Generate SDKs locally, from GitHub, or from any CI system with absolute consistency.

Who needs to migrate?

Customers who started with Speakeasy in March 2024 or later are likely already using Speakeasy workflows. Verify this by checking the folders in the generated SDK. If the SDK contains a .speakeasy folder, it is already using workflows.

If you started using Speakeasy before March 2024, follow the steps below to migrate to workflows.

Migration steps

For existing Speakeasy SDKs in GitHub, an easy migration tool is available. Navigate to the root of the repo and run the following command:

The following changes will appear as a result:

  • .speakeasy/workflow.yaml [NEW]
  • .github/workflows/sdk_generation_action.yaml [UPDATED]

Push these changes up and you are ready to go!

The produced files should look something like the following:

It is now possible to generate the SDK locally using speakeasy run, while GitHub Actions automated generations will continue working as before.

Any custom code in the current GitHub Actions workflow should automatically be moved over by the migration script.

If you have any issues migrating to workflows, reach out to the Speakeasy team on Slack and we will help you resolve it quickly.

Creating a new SDK repo

To migrate by creating a new SDK repo, an easy-to-use command is available for setting up an SDK for the preferred specification and language.

Create a new repo and run the following commands from the root directory:

After creating the repo, copy the gen.yaml from the old SDK into .speakeasy/gen.yaml in the new SDK repo. The SDK is now ready to generate!

Last updated on