Skip to content

Commit 63e56ab

Browse files
authored
MAINT automatic push of the documentation (#628)
1 parent 1d82269 commit 63e56ab

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jobs:
55
docker:
66
- image: circleci/python:3.6.1
77
environment:
8-
- USERNAME: "scikit-learn-contrib"
9-
- DOC_REPO: "imbalanced-learn"
8+
- USERNAME: "imbalanced-learn"
9+
- DOC_REPO: "imbalanced-learn.github.io"
1010
- DOC_URL: ""
1111
- EMAIL: "[email protected]"
1212
- MINICONDA_PATH: ~/miniconda

build_tools/circle/push_doc.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ MSG="Pushing the docs to $dir/ for branch: $CIRCLE_BRANCH, commit $CIRCLE_SHA1"
2727

2828
cd $HOME
2929
if [ ! -d $DOC_REPO ];
30-
then git clone --depth 1 --no-checkout -b gh-pages "[email protected]:"$USERNAME"/"$DOC_REPO".git";
30+
then git clone --depth 1 --no-checkout -b master "[email protected]:"$USERNAME"/"$DOC_REPO".git";
3131
fi
3232
cd $DOC_REPO
3333
git config core.sparseCheckout true
3434
echo $dir > .git/info/sparse-checkout
35-
git checkout gh-pages
36-
git reset --hard origin/gh-pages
35+
git checkout master
36+
git reset --hard origin/master
3737
git rm -rf $dir/ && rm -rf $dir/
3838
cp -R $GENERATED_DOC_DIR $dir
3939
touch $dir/.nojekyll
@@ -42,6 +42,6 @@ git config --global user.name $USERNAME
4242
git config --global push.default matching
4343
git add -f $dir/
4444
git commit -m "$MSG" $dir
45-
git push origin gh-pages
45+
git push origin master
4646

4747
echo $MSG

0 commit comments

Comments
 (0)