delvtech / hyperdrive

An automated market maker for fixed and variable yield with on-demand terms.
Apache License 2.0
33 stars 4 forks source link

extract hyperdrivetypes build workflow & use it in two different conditions #1160

Closed dpaiton closed 2 months ago

dpaiton commented 2 months ago

This PR changes the build_hyperdrivetypes.yml file to be a reusable workflow. We then have two separate actionable workflows that build & ship types if either 1) the hyperdrive version has incremented OR 2) the pyproject.toml version has incremented.

Both of these cases include checks that the first three hyperdrive symver digits (vX.Y.Z) match the first three hyperdrivetypes digits.