HI! How to use github repository in Prefect 2.0? I have already created a block github storage, but I can't figure out how to select branches and files in the repository? In version 1.0 it looked like this: from prefect.storage import Git
Hi Mike, if you're on the latest version of prefect you can run
prefect deploy PATH_TO_FLOW:FLOW_NAME
in the cli from the root of your repo and you'll be guided through deploying your flow and setting up github storage. (Obviously switch PATH_TO_FLOW to the path to your flow and FLOW_NAME to your flow's name!)
m
Mike
06/19/2023, 12:14 PM
Is there a way to do this using a python script?
Mike
06/19/2023, 12:18 PM
Our script picks up changes from the github and then registration them using KubernetesRun. I would like to continue using it in the new version of Prefect (of course, first changing everything to fit the new realities)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.