Browse Source

add copybara script & config

GitOrigin-RevId: 3f8e5453ae
master
Colin McMillen 4 years ago
parent
commit
6ad9167818
  1. 25
      tools/copybara/copy.bara.sky
  2. 6
      tools/copybara/copybara.sh

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

6
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
Loading…
Cancel
Save