修改deploy
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
const { execSync } = require('child_process');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const os = require('os');
|
||||
|
||||
const isWindows = os.platform() === 'win32';
|
||||
|
||||
// 配置目标Git仓库信息
|
||||
const config = {
|
||||
@@ -9,7 +12,7 @@ const config = {
|
||||
distPath: path.resolve(__dirname, './dist'), // 构建产物目录
|
||||
// commitMessage: `Auto-deploy at ${new Date().toISOString()}`
|
||||
commitMessage: `Auto-deploy at ${new Date().toLocaleString('sv-SE')}`, // 提交信息
|
||||
gitPath: 'E:\\', //仓库本地保存路径
|
||||
gitPath: isWindows ? 'E:\\' : '/opt/', //仓库本地保存路径
|
||||
dirName: 'hcb' //仓库文件夹名
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user