Skip to content

Commit 886c240

Browse files
committed
copy readme and changelog when publishing
1 parent 3db0bc6 commit 886c240

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

publish.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ local count = copyFiles(ROOT , out) {
178178
}
179179
print(('复制了[%d]个文件'):format(count))
180180

181+
print('复制 readme ...')
182+
fs.copy_file(ROOT / 'server' / 'changelog.md', ROOT / 'changelog.md', true)
183+
fsu.saveFile(ROOT / 'readme.md', fsu.loadFile(ROOT / 'server' / 'readme.md'):gsub('%!%[build%][^\r\n]*', ''))
184+
181185
print('开始测试...')
182186
runTest(out / 'server')
183187

0 commit comments

Comments
 (0)