diff --git a/tools/copybara/copy.bara.sky b/tools/copybara/copy.bara.sky new file mode 100644 index 0000000..bab74f6 --- /dev/null +++ b/tools/copybara/copy.bara.sky @@ -0,0 +1,25 @@ +sourceUrl = "git@github.com:mcmillen/sneak.git" +destinationUrl = "git@github.com:mcmillen/sneak-public.git" + +core.workflow( + name = "default", + mode = "ITERATIVE", + origin = git.origin( + url = sourceUrl, + ref = "master", + ), + destination = git.destination( + url = destinationUrl, + fetch = "master", + push = "master", + ), + # Change path to the folder you want to publish publicly + origin_files = glob(["tools/**", "Shared/**", "Jumpy.Shared/**"]), + + authoring = authoring.pass_thru("Unknown Author "), + + # Change the path here to the folder you want to publish publicly + #transformations = [ + # core.move("", ""), + #], +) diff --git a/tools/copybara/copybara.sh b/tools/copybara/copybara.sh new file mode 100644 index 0000000..c9abad1 --- /dev/null +++ b/tools/copybara/copybara.sh @@ -0,0 +1,6 @@ +#/bin/sh + +SCRIPT=$(readlink -f "$0") +SCRIPTPATH=$(dirname "$SCRIPT") + +java -jar ~/bin/copybara_deploy.jar migrate $SCRIPTPATH/copy.bara.sky