From 87e93609a5535755fb40e05996ff997657aac6d2 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Fri, 5 Jul 2019 12:15:04 +0200 Subject: add automatic push of github pages add target in the makefile and the script used by it to get the website update .travis.yml to push the website on ghpages branch --- scripts/launch-website.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/launch-website.sh (limited to 'scripts') diff --git a/scripts/launch-website.sh b/scripts/launch-website.sh new file mode 100755 index 0000000..f146e75 --- /dev/null +++ b/scripts/launch-website.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +(sleep 10; +wget --recursive --no-parent --domains localhost --page-requisites --html-extension --convert-links --no-clobber http://localhost:4567/docs/providers/mailgun/; + +rm -rf terraform-provider-website; +mv localhost:4567/ terraform-provider-website; + +docker stop "$(docker ps -q)") & + +make website -- cgit v1.2.3