[CI] Switch to Circle 2 (#168)

* Switch to Circle 2

* Use Yarn in CI

* Move things around

* Fix Remarkable case issue

* Run placeholder test

* Update deploy script

Use multiline commit messages to ensure commit beign deployed is documented in git history
This commit is contained in:
Héctor Ramos 2017-10-25 14:04:24 -07:00 committed by Joel Marcey
parent 55b0f33f2a
commit 140dcaa500
5 changed files with 259 additions and 225 deletions

View file

@ -81,8 +81,10 @@ shell.cp(
);
shell.cd(`build/${CIRCLE_PROJECT_REPONAME}-gh-pages`);
const currentCommit = shell.exec('git rev-parse HEAD').stdout.trim();
shell.exec("git add --all");
shell.exec('git commit -m "update website [ci skip]"');
shell.exec(`git commit -m "Deploy website" -m "Deploy website version based on ${currentCommit}"`);
if (shell.exec("git push origin gh-pages").code !== 0) {
shell.echo("Error: Git push failed");
shell.exit(1);