mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 10:25:16 +00:00
20 lines
388 B
Bash
Executable File
20 lines
388 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname $0)"/..
|
|
|
|
if [ "$CI" ]; then
|
|
# write out SSH key
|
|
[ "$SSH_KEY" ] || exit 1
|
|
echo "$SSH_KEY" > ~/.ssh/id_rsa
|
|
chmod 600 ~/.ssh/id_rsa
|
|
fi
|
|
|
|
# branch names
|
|
DEFAULT=v3
|
|
ROLLUP=rollup-v3
|
|
WEBPACK=webpack-v3
|
|
|
|
./create-branches.sh $DEFAULT $ROLLUP $WEBPACK
|
|
|
|
# force push rollup and webpack branches
|
|
git push git@github.com:sveltejs/sapper-template.git $ROLLUP $WEBPACK -f
|