Fix cname

This commit is contained in:
Otto Winter 2018-10-20 18:57:40 +02:00
parent 6bb13fe649
commit e5d769136c
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ deploy-beta:
- git fetch --force git@github.com:OttoWinter/beta.esphomelib.com.git master:gh-pages
- git worktree add _build/html gh-pages
- make ../esphomelib
- make deploy
- CNAME=beta.esphomelib.com make deploy
- git -C _build/html push git@github.com:OttoWinter/beta.esphomelib.com.git gh-pages
only:
- rc

View File

@ -9,6 +9,7 @@ SOURCEDIR = .
BUILDDIR = _build
ESPHOMELIB_PATH = ../esphomelib
ESPHOMELIB_TAG = v1.8.0
CNAME = esphomelib.com
.PHONY: html cleanhtml doxyg cleandoxyg deploy help webserver Makefile $(ESPHOMELIB_PATH)
@ -33,7 +34,7 @@ $(ESPHOMELIB_PATH):
deploy: cleanhtml doxyg html $(ESPHOMELIB_PATH)
touch "$(BUILDDIR)/html/.nojekyll"
echo "esphomelib.com" >"$(BUILDDIR)/html/CNAME"
echo $CNAME >"$(BUILDDIR)/html/CNAME"
git -C "$(BUILDDIR)/html" add --all && git -C "$(BUILDDIR)/html" commit -m "Deploy to gh-pages"
@printf "Run \033[0;36mcd $(BUILDDIR)/html && git push origin gh-pages\033[0m to deploy\n"