2024-05-23 00:17:55 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. .drone/macros/configure-git.sh
|
|
|
|
. .drone/macros/configure-ssh.sh
|
|
|
|
|
|
|
|
ssh-keyscan github.com >> ~/.ssh/known_hosts 2>/dev/null
|
|
|
|
|
|
|
|
# Clone the repository
|
|
|
|
git remote add github git@github.com:/BlackLight/platypush.git
|
|
|
|
git pull --rebase github "$(git branch | head -1 | awk '{print $2}')" || echo "No such branch on Github"
|
|
|
|
|
|
|
|
# Push the changes to the GitHub mirror
|
|
|
|
git push --all -v github
|
2024-07-27 15:31:50 +02:00
|
|
|
git push --tags origin master
|