Skip to content

Commit 17fa58e

Browse files
committed
adicionado registro automatico do sitemap.xml no google e bing
1 parent 9334882 commit 17fa58e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
2323
git add --all -f .
2424
git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to Github Pages"
2525
git push -fq origin $BRANCH > /dev/null
26+
curl -Is http://www.google.com/webmasters/tools/ping?sitemap=http://pythonclub.com.br/sitemap.xml | grep "200 OK" || echo "Erro pinging Google"
27+
curl -Is http://www.bing.com/webmaster/ping.aspx?siteMap=http://pythonclub.com.br/sitemap.xml | grep "200 OK" || echo "Erro pinging Bing"
2628
echo -e "Deploy completed\n"
2729
fi

0 commit comments

Comments
 (0)