diff --git a/scripts/publish-packs.ts b/scripts/publish-packs.ts index 97f11af..3afa99e 100644 --- a/scripts/publish-packs.ts +++ b/scripts/publish-packs.ts @@ -164,7 +164,8 @@ try { writeFileSync(join(work, '.gitattributes'), '*.png binary -diff\n*.json text eol=lf\n') git(['add', '-A'], work) git([ - '-c', 'user.name=d2web', '-c', 'user.email=d2web@localhost', + '-c', `user.name=${process.env['GIT_AUTHOR_NAME'] ?? 'Dao Tao'}`, + '-c', `user.email=${process.env['GIT_AUTHOR_EMAIL'] ?? 'taodao@google.com'}`, 'commit', '-q', '-m', `烘焙图集包 ${stamp}:${String(stats.maps)} 个地图块(${(stats.bytes / 1048576).toFixed(1)} MB)