Przeglądaj źródła

push documentation to 0.3 folder of the homepage

Julius Pfrommer 7 lat temu
rodzic
commit
35479bece2

+ 1 - 1
tools/travis/travis_linux_after_success.sh

@@ -6,7 +6,7 @@ if [ -z ${DOCKER+x} ]; then
 
 	if [ "$ANALYZE" = "false" ] && [ "$CC" = "gcc" ] && [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]; then
 		echo "=== Executing after_success scripts ==="
-		if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
+		if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "0.3" ]; then
 			sh ./tools/travis/travis_push_doc.sh
 			sh ./tools/travis/travis_push_coverity.sh
 		fi

+ 3 - 2
tools/travis/travis_push_doc.sh

@@ -9,8 +9,9 @@ fi
 git clone --depth=5 -b gh-pages https://$GITAUTH@github.com/open62541/open62541-www
 cd open62541-www
 
-rm -r -f ./doc/current/* || true # ignore result
-cp -r ../../doc/* ./doc/current/
+rm -r -f ./doc/0.3 || true # ignore result
+mkdir ./doc/0.3 || true # ignore result
+cp -r ../../doc/* ./doc/0.3/
 cp -r ../../doc_latex/open62541.pdf ./doc/open62541-current.pdf
 git add -A ./doc
 git config --global user.email "open62541-travis-ci@users.noreply.github.com"