forked from platypush/platypush
19 lines
462 B
Bash
Executable file
19 lines
462 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. .drone/macros/configure-git.sh
|
|
. .drone/macros/configure-ssh.sh
|
|
. .drone/macros/configure-gpg.sh
|
|
|
|
# Git configuration
|
|
git remote rm origin
|
|
git remote add origin git@git.platypush.tech:platypush/platypush.git
|
|
git fetch origin
|
|
|
|
# Merge and push to the `stable` branch
|
|
git checkout stable || git checkout -b stable
|
|
git rebase master
|
|
git push -u origin stable
|
|
git checkout master
|
|
|
|
# Restore the original git configuration
|
|
mv "$TMP_GIT_CONF" "$GIT_CONF"
|