File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 50
50
DOCS_URL="${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/build/html/index.html"; echo $DOCS_URL
51
51
52
52
- run :
53
- name : Push to RTD branch
53
+ name : Push to gh-pages branch
54
54
command : |
55
- bash .circleci/rtd -push.sh
55
+ bash .circleci/gh-pages -push.sh
56
56
57
57
# - save_cache: # Specify what paths to cache
58
58
# key: sample-data-v1
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -eux
2
+
3
+ # if [ -z "${GIT_USER_NAME}" ]; then
4
+ # echo "Please set an env var GIT_USER_NAME"
5
+ # exit 1
6
+ # fi
7
+ #
8
+ # if [ -z "${GIT_USER_EMAIL}" ]; then
9
+ # echo "Please set an env var GIT_USER_EMAIL"
10
+ # exit 1
11
+ # fi
12
+
13
+ if [[ -z $CIRCLE_PULL_REQUEST ]] ; then
14
+ git clone --single-branch -b gh-pages
[email protected] :astropy/astropy-tutorials.git gh-pages
15
+ cp -r build/html/* gh-pages
16
+ cd gh-pages
17
+ git add .
18
+ git status
19
+ git -c user.name=' circle' -c user.email=' circle' commit -m " Upadate the build docs"
20
+ git status
21
+ git push -q origin gh-pages
22
+ echo " Not a pull request: pushing RST files to rst branch."
23
+ else
24
+ echo $CIRCLE_PULL_REQUEST
25
+ echo " This is a pull request: not pushing RST files."
26
+ fi
You can’t perform that action at this time.
0 commit comments