diff options
author | Shohei Ueda <30958501+peaceiris@users.noreply.github.com> | 2020-01-31 01:41:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 01:41:12 +0300 |
commit | a0570a6a399fcf8d76e8be9d48723065a5ace1e3 (patch) | |
tree | 3e7ac2e38022c213f8ce86205e91a35c397d6331 /Makefile | |
parent | af8291e7ca20d2a6c42a1d83b08ff3e6e2744794 (diff) |
ci: Add test workflow (#98)
Close #96
* ci: Add test workflow
* ci: add test-docker job
* ci: Add Lighthouse workflow
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -17,3 +17,13 @@ hugo: data: curl 'https://api.github.com/users/peaceiris/repos?per_page=100&page=1' > ./data/github/peaceiris.json # curl 'https://api.github.com/users/hugojapan/repos?per_page=100&page=1' > ./data/github/hugojapan.json + +.PHONY: build +build: + $(eval opt := --gc --minify --themesDir ../ --layoutDir ../layouts --baseURL https://hugothemeiris.peaceiris.app/) + $(DOCKER_COMPOSE) run --rm hugo $(opt) + +.PHONY: buildgha +buildgha: + cd ./exampleSite && \ + hugo --gc --minify --themesDir ../ --layoutDir ../layouts --baseURL https://hugothemeiris.peaceiris.app/ |