Skip to content

Commit

Permalink
Update release script, push to multiple remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Sep 23, 2019
1 parent c370e19 commit 137cf01
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

EDITOR=${EDITOR:-editor}

Expand Down Expand Up @@ -65,9 +65,13 @@ read -n1 a
echo

if test "$a" != "n" -a "$a" != "N"; then
git push origin || exit 1
for remote in $(git remote); do
git push $remote || exit 1
done
#git push --tags ## would push ALL existing tags,
git push origin "refs/tags/v${VERSION}:refs/tags/v${VERSION}" || exit 1
for remote in $(git remote); do
git push $remote "refs/tags/v${VERSION}:refs/tags/v${VERSION}" || exit 1
done
cd doc/html
git push origin gh-pages || exit 1
cd ../..
Expand Down

0 comments on commit 137cf01

Please sign in to comment.