mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 13:37:05 +02:00
[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:
parent
55b0f33f2a
commit
140dcaa500
5 changed files with 259 additions and 225 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue