Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed publising of release documentation history
  • Loading branch information
jgebal committed Jun 19, 2017
commit ad747ea6df51175b91dfe5eabdb9ec61bdaa0b90
6 changes: 4 additions & 2 deletions .travis/push_docs_to_gh_pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
fi
#If build running on a TAG - it's a new release - need to add it to documentation
if [ -n "${TRAVIS_TAG}" ]; then
latest_release=" - [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
sed -i '7s@.*@'"Latest release ${latest_release}"'@' index.md
latest_release=" [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
sed -i '7s@.*@'" - Latest release: ${latest_release}"'@' index.md
#add entry to the end of file - ## Released Version Doc History
echo "- ${latest_release}">>index.md
fi
#replace 4th line in log
sed -i '8s@.*@'"${latest}"'@' index.md
Expand Down