Odonno / surrealdb-migrations

An awesome SurrealDB migration tool, with a user-friendly CLI and a versatile Rust library that enables seamless integration into any project.
https://crates.io/crates/surrealdb-migrations
MIT License
210 stars 16 forks source link

Github Action to automatically execute migrations via CD #8

Closed turulix closed 1 year ago

turulix commented 1 year ago

it would be amazing to have an Github Action on the Marketplace for this, so you can easily deploy migrations via Github Actions for new releases.

Odonno commented 1 year ago

Oh, yes, I totally get that. Using this library inside a CI/CD, you could go full Database GitOps.

I will try to see how to write a GitHub action project but I would like to put the project into this repository if possible.

If you want to do it, please let me know now.

Odonno commented 1 year ago

Looks like this is not a recommended practice to make a monorepo for this, per the doc: https://docs.github.com/en/actions/creating-actions/about-custom-actions#choosing-a-location-for-your-action

Odonno commented 1 year ago

Hi @turulix,

There is now a GitHub Action listed in the marketplace here: https://github.com/marketplace/actions/surrealdb-migrations

Please note that this is an early preview and new features will be added soon.