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-26 01:26:19 +02:00
|
|
|
git fetch origin
|
2024-05-26 00:56:01 +02:00
|
|
|
|
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 01:26:19 +02:00
|
|
|
git rebase master
|
2024-05-23 00:17:55 +02:00
|
|
|
git push -u origin stable
|
2024-05-26 01:26:19 +02:00
|
|
|
git checkout master
|
2024-05-23 00:17:55 +02:00
|
|
|
|
|
|
|
# Restore the original git configuration
|
|
|
|
mv "$TMP_GIT_CONF" "$GIT_CONF"
|