Skip to content

Commit

Permalink
Fix CNAME v2
Browse files Browse the repository at this point in the history
  • Loading branch information
OttoWinter committed Oct 20, 2018
1 parent 7837574 commit f43c4c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,7 +49,7 @@ deploy-beta:
- git fetch --force [email protected]: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 [email protected]:OttoWinter/beta.esphomelib.com.git gh-pages
only:
- rc
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f43c4c2

Please sign in to comment.