File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,22 @@ if !(( FORCE )); then
65
65
fi
66
66
fi
67
67
68
+ # On master, still update version in source/conf.py
69
+ if [ " $BRANCH " == " master" ]; then
70
+ # Fix version & release in conf.py
71
+ sed -i -r \
72
+ -e " s/^version = u'.*'.*/version = u'$VERSION '/" \
73
+ -e " s/^release = u'.*'.*/release = u'$VERSION '/" \
74
+ source/conf.py
75
+
76
+ # Make commit, tag it as nightly & push it, tag will be published later in this script
77
+ if git status -s | grep -q -E ' ^ ?M+ ' ; then
78
+ git commit -a -m " Update version in conf"
79
+ git tag -f nightly
80
+ (( PUSH )) && git push
81
+ fi
82
+ fi
83
+
68
84
# Check we are in a dedicated branch
69
85
case " $BRANCH " in
70
86
" " )
@@ -91,12 +107,6 @@ case "$BRANCH" in
91
107
;;
92
108
esac
93
109
94
- # Fix version & release in conf.py
95
- sed -i -r \
96
- -e " s/^version = u'.*'.*/version = u'$VERSION '/" \
97
- -e " s/^release = u'.*'.*/release = u'$VERSION '/" \
98
- source/conf.py
99
-
100
110
# Update any |version| found
101
111
grep -lr ' |version|' source | grep -v source/conf.py | \
102
112
while read file
You can’t perform that action at this time.
0 commit comments