-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove old gh-pages publishing workflow
- Loading branch information
1 parent
564896a
commit 1f492e4
Showing
3 changed files
with
11 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
/.bundle/ | ||
.DS_Store | ||
Gemfile.lock | ||
/_gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,27 @@ | ||
# Website Makefile | ||
|
||
JEKYLL_CMD=docker run --rm --name jekyll -it -v $$PWD:/srv/jekyll iandennismiller/jekyll:latest | ||
JEKYLL_CMD=docker run --rm --name jekyll -it -v $$PWD:/srv/jekyll | ||
JEKYLL_PORT=-p 4000:4000 | ||
JEKYLL_IMAGE=iandennismiller/jekyll:latest | ||
|
||
help: | ||
@echo The following makefile targets are available: | ||
@echo | ||
@grep -h -e '^\w\S\+\:' Makefile _dev/*.mk | sed 's/://g' | cut -d ' ' -f 1 | ||
|
||
publish: clean build | ||
rsync -av --delete --checksum --exclude .git _site/ _gh-pages/ | ||
cd _gh-pages && git add -A && git commit -am "automatic publish" && git push | ||
@echo ok | ||
|
||
serve: | ||
docker run \ | ||
--rm -it \ | ||
--name jekyll \ | ||
-v $$PWD:/srv/jekyll \ | ||
-p 4000:4000 \ | ||
iandennismiller/jekyll:latest \ | ||
$(JEKYLL_CMD) $(JEKYLL_PORT) $(JEKYLL_IMAGE) \ | ||
/bin/bash -c 'bundle exec jekyll serve --host 0.0.0.0' | ||
|
||
clean: | ||
$(JEKYLL_CMD) /bin/bash -c 'bundle exec jekyll clean' | ||
$(JEKYLL_CMD) $(JEKYLL_IMAGE) /bin/bash -c 'bundle exec jekyll clean' | ||
|
||
incremental: clean | ||
$(JEKYLL_CMD) /bin/bash -c 'JEKYLL_ENV=production bundle exec jekyll build --incremental' | ||
$(JEKYLL_CMD) $(JEKYLL_IMAGE) \ | ||
/bin/bash -c 'JEKYLL_ENV=production bundle exec jekyll build --incremental' | ||
|
||
build: | ||
$(JEKYLL_CMD) /bin/bash -c 'JEKYLL_ENV=production bundle exec jekyll build' | ||
|
||
shell-docker: | ||
$(JEKYLL_CMD) /bin/bash | ||
$(JEKYLL_CMD) $(JEKYLL_IMAGE) \ | ||
/bin/bash -c 'JEKYLL_ENV=production bundle exec jekyll build' | ||
|
||
.PHONY: docs | ||
shell: | ||
$(JEKYLL_CMD) $(JEKYLL_IMAGE) /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters