Now, we are at the final stage where we are pulling the magic of github actions into our project. Whenever we make any push or commits. Whole MLOps pipeline will be initiated, and server will up.
Adding code for actions
I’ve written minimal code to perform all the actions on push, on pull, jobs to train and inferencing the model. Create one file inside .github/workflows
with name main.yml.
Adding Secrets
As you can, in the whole project we’re using env
variables for supabase and dagshub credentials. To add it in main.yml,
Go to settings/secrets and variables/actions, then add our key value pairs and use it with secrets.