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 --- GNUmakefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 7750632..fe6e28c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -46,6 +46,8 @@ test-compile: fi go test -c $(TEST) $(TESTARGS) +website-githubpages: + bash scripts/launch-website.sh website: ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..." -- cgit v1.2.3 From 1e4cb933c500f8135161e3d7fabeb0acf93bec12 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Mon, 8 Jul 2019 11:30:44 +0200 Subject: add index.html to ghpages created index.html update the script to add it in the website directory --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index fe6e28c..e31a939 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -62,5 +62,5 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) endif @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) -.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test +.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test website-githubpages -- cgit v1.2.3 From 7cbb92efb5e84de877976830ee04798c1cc808b8 Mon Sep 17 00:00:00 2001 From: Alexandre Garand Date: Mon, 8 Jul 2019 15:46:38 +0200 Subject: add newline and commentary for clarity --- GNUmakefile | 1 + 1 file changed, 1 insertion(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index e31a939..c88972d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -48,6 +48,7 @@ test-compile: website-githubpages: bash scripts/launch-website.sh + website: ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..." -- cgit v1.2.3