mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-26 22:21:38 +01:00
Fix CNAME v2
This commit is contained in:
parent
78375742ff
commit
f43c4c29d8
@ -34,6 +34,8 @@ deploy-release:
|
||||
deploy-beta:
|
||||
tags:
|
||||
- esphomedocs
|
||||
variables:
|
||||
CNAME: beta.esphomelib.com
|
||||
before_script:
|
||||
- mkdir -p /root/.ssh
|
||||
- echo "$GITHUB_BETA_PRIVATE_KEY" | tr -d '\r' >/root/.ssh/id_rsa
|
||||
@ -47,7 +49,7 @@ deploy-beta:
|
||||
- git fetch --force git@github.com:OttoWinter/beta.esphomelib.com.git gh-pages:gh-pages
|
||||
- git worktree add _build/html gh-pages
|
||||
- make ../esphomelib
|
||||
- CNAME=beta.esphomelib.com make deploy
|
||||
- make deploy
|
||||
- git -C _build/html push -f git@github.com:OttoWinter/beta.esphomelib.com.git gh-pages
|
||||
only:
|
||||
- rc
|
||||
|
2
Makefile
2
Makefile
@ -34,7 +34,7 @@ $(ESPHOMELIB_PATH):
|
||||
|
||||
deploy: cleanhtml doxyg html $(ESPHOMELIB_PATH)
|
||||
touch "$(BUILDDIR)/html/.nojekyll"
|
||||
echo $CNAME >"$(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