mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Fix cname
This commit is contained in:
parent
6bb13fe649
commit
e5d769136c
@ -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
|
||||
|
3
Makefile
3
Makefile
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user