add copybara script & config

GitOrigin-RevId: 3f8e5453ae75ef5724c00131a55e1315cef70841
This commit is contained in:
Colin McMillen 2020-01-10 12:15:25 -05:00
parent ef84fa85a1
commit 6ad9167818
2 changed files with 31 additions and 0 deletions

View File

@ -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 <nobody@semicolin.games>"),
# Change the path here to the folder you want to publish publicly
#transformations = [
# core.move("", ""),
#],
)

View File

@ -0,0 +1,6 @@
#/bin/sh
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
java -jar ~/bin/copybara_deploy.jar migrate $SCRIPTPATH/copy.bara.sky