Skip to content

Commit

Permalink
fix(build): Fixed deployment of latest master as commit (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored Apr 26, 2017
1 parent 0beb87c commit 5d0ecf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ export async function publishToRepo(config: Config) {
await process.chdir(`${REPO_DIR}`);
await util.git([`init`]);
await util.git([`remote add origin ${REPO_URL}`]);
await util.git(['fetch origin master --depth=1']);
await util.git(['checkout origin/master']);
await util.git(['checkout -b master']);
await process.chdir('../../');
await util.cmd('rm -rf', [`${REPO_DIR}/*`]);
await util.cmd('cp', [`-R ${SOURCE_DIR}/* ${REPO_DIR}/`]);
await process.chdir(`${REPO_DIR}`);
await util.git([`config user.name "${COMMITTER_USER_NAME}"`]);
Expand Down

0 comments on commit 5d0ecf9

Please sign in to comment.