Skip to content

Commit 65d0169

Browse files
authored
Merge pull request #363 from jgebal/feature/fix_publishing_to_gh_pages_on_release
Fixed publising of release documentation history
2 parents fdc3f28 + 9abf215 commit 65d0169

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis/push_docs_to_gh_pages.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
8585
fi
8686
#If build running on a TAG - it's a new release - need to add it to documentation
8787
if [ -n "${TRAVIS_TAG}" ]; then
88-
latest_release=" - [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
89-
sed -i '7s@.*@'"Latest release ${latest_release}"'@' index.md
88+
latest_release=" [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
89+
sed -i '7s@.*@'" - Latest release: ${latest_release}"'@' index.md
90+
#add entry to the end of file - ## Released Version Doc History
91+
echo "- ${latest_release}">>index.md
9092
fi
9193
#replace 4th line in log
9294
sed -i '8s@.*@'"${latest}"'@' index.md

0 commit comments

Comments
 (0)