Skip to content

Commit 6d34d59

Browse files
committed
update rtd push script
1 parent ae23b90 commit 6d34d59

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.circleci/rtd-push.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
# exit 1
1111
# fi
1212

13-
if [[ ! -z $CIRCLE_PULL_REQUEST ]] ; then
14-
# git checkout --orphan rst
15-
# git add -f tutorials/rst-tutorials/*
16-
# git -c user.name='travis' -c user.email='travis' commit -m "now with RST"
17-
# git push -q -f https://adrn:$GITHUB_API_KEY@github.com/astropy/astropy-tutorials rst;
18-
echo "Not a pull request: pushing RST files to `rst` branch!"
13+
if [[ -z $CIRCLE_PULL_REQUEST ]] ; then
14+
git checkout --orphan rst
15+
git add -f tutorials/rst-tutorials/*
16+
git -c user.name='circle' -c user.email='circle' commit -m "now with RST"
17+
git remote add origin git@github.com:astropy/astropy-tutorials.git
18+
git push -q -f origin rst
19+
echo "Not a pull request: pushing RST files to rst branch."
1920
else
21+
echo $CIRCLE_PULL_REQUEST
2022
echo "This is a pull request: not pushing RST files."
2123
fi

0 commit comments

Comments
 (0)