summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeploy14
1 files changed, 14 insertions, 0 deletions
diff --git a/deploy b/deploy
index 7c51dbe..fdafd0d 100755
--- a/deploy
+++ b/deploy
@@ -4,6 +4,8 @@
#
# Re-generates the static website from source and asserts a clean working tree
# before uploading the website to the server.
+#
+# Submits the live sitemap to Google and Bing.
set -o errexit
set -o nounset
@@ -39,3 +41,15 @@ scp "${archive}" engine.skreutz.com:www-archive/
rsync --rsync-path=openrsync --archive --delete --verbose \
"${src}" "engine.skreutz.com:/var/www/htdocs/www.skreutz.com"
+
+curl \
+ --silent \
+ --output /dev/null \
+ http://www.google.com/ping?sitemap=https://www.skreutz.com/sitemap.xml \
+ || ( >&2 printf "error: failed to submit live sitemap to google.com\\n" )
+
+curl \
+ --silent \
+ --output /dev/null \
+ http://www.bing.com/ping?sitemap=https%3A%2F%2Fwww.skreutz.com/sitemap.xml \
+ || ( >&2 printf "error: failed to submit live sitemap to bing.com\\n" )
Generated by cgit. See skreutz.com for my tech blog and contact information.