2024-05-23 00:17:55 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. .drone/macros/configure-git.sh
|
|
|
|
. .drone/macros/configure-ssh.sh
|
|
|
|
. .drone/macros/configure-gpg.sh
|
|
|
|
|
2024-05-26 00:56:01 +02:00
|
|
|
# Git configuration
|
|
|
|
git remote rm origin
|
|
|
|
git remote add origin git@git.platypush.tech:platypush/platypush.git
|
|
|
|
|
2024-05-23 00:17:55 +02:00
|
|
|
# Merge and push to the `stable` branch
|
2024-05-26 00:50:02 +02:00
|
|
|
git checkout stable || git checkout -b stable
|
2024-05-26 00:56:01 +02:00
|
|
|
git rebase origin master
|
2024-05-23 00:17:55 +02:00
|
|
|
git push -u origin stable
|
2024-05-26 00:56:01 +02:00
|
|
|
git checkout origin master
|
2024-05-23 00:17:55 +02:00
|
|
|
|
|
|
|
# Restore the original git configuration
|
|
|
|
mv "$TMP_GIT_CONF" "$GIT_CONF"
|