Skip to content

Commit 7e81bf3

Browse files
fix: build command
1 parent d3ec94c commit 7e81bf3

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/utils/command.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const misc_1 = require("./misc");
1919
exports.deploy = (branch, context) => __awaiter(this, void 0, void 0, function* () {
2020
const workDir = path_1.default.resolve(misc_1.getWorkspace(), '.work');
2121
const buildDir = path_1.default.resolve(workDir, 'build');
22-
const pushDir = path_1.default.resolve(workDir, 'build');
22+
const pushDir = path_1.default.resolve(workDir, 'push');
2323
signale_1.default.info(`Deploying branch %s to %s`, branch, misc_1.getRepository(context));
2424
fs_1.default.mkdirSync(pushDir, { recursive: true });
2525
yield exports.prepareFiles(buildDir, pushDir, context);
@@ -38,9 +38,7 @@ exports.prepareFiles = (buildDir, pushDir, context) => __awaiter(this, void 0, v
3838
const cloneForBranch = (pushDir, branch, context) => __awaiter(this, void 0, void 0, function* () {
3939
signale_1.default.info(`Cloning the branch %s from the remote repo`, branch);
4040
const url = misc_1.getGitUrl(context);
41-
yield execAsync(`cd ${pushDir} && ls -lat`);
4241
yield execAsync(`git -C ${pushDir} clone --quiet --branch=${branch} --depth=1 ${url} .`, true, 'git clone', true);
43-
yield execAsync(`cd ${pushDir} && ls -lat`);
4442
if (!fs_1.default.existsSync(path_1.default.resolve(pushDir, '.git'))) {
4543
yield gitInit(pushDir);
4644
yield gitCheckout(pushDir, branch);

src/utils/command.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {getGitUrl, getRepository, getBuildCommands, getWorkspace, getCommitMessa
88
export const deploy = async (branch: string, context: Context) => {
99
const workDir = path.resolve(getWorkspace(), '.work');
1010
const buildDir = path.resolve(workDir, 'build');
11-
const pushDir = path.resolve(workDir, 'build');
11+
const pushDir = path.resolve(workDir, 'push');
1212
signale.info(`Deploying branch %s to %s`, branch, getRepository(context));
1313

1414
fs.mkdirSync(pushDir, {recursive: true});
@@ -32,9 +32,7 @@ const cloneForBranch = async (pushDir: string, branch: string, context: Context)
3232
signale.info(`Cloning the branch %s from the remote repo`, branch);
3333

3434
const url = getGitUrl(context);
35-
await execAsync(`cd ${pushDir} && ls -lat`);
3635
await execAsync(`git -C ${pushDir} clone --quiet --branch=${branch} --depth=1 ${url} .`, true, 'git clone', true);
37-
await execAsync(`cd ${pushDir} && ls -lat`);
3836
if (!fs.existsSync(path.resolve(pushDir, '.git'))) {
3937
await gitInit(pushDir);
4038
await gitCheckout(pushDir, branch);

0 commit comments

Comments
 (0)