CI: Housekeeping & nojekyll
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy (3.114.12) (push) Has been cancelled
Toggle Dist Repo Visibility / Toggle Dist Repo Visibility (push) Has been cancelled

This commit is contained in:
SukkaW
2026-06-28 00:05:45 +08:00
parent 27782e993b
commit e6f3a32c7c
2 changed files with 5 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ export const buildPublic = task(require.main === module, __filename)(async (span
.traceChild('generate index.html')
.traceAsyncFn(() => treeDir(PUBLIC_DIR).then(generateHtml));
await Promise.all([
return Promise.all([
compareAndWriteFile(
span,
appendArrayInPlace(
@@ -104,10 +104,10 @@ export const buildPublic = task(require.main === module, __filename)(async (span
'![GitHub repo size](https://img.shields.io/github/repo-size/sukkalab/ruleset.skk.moe?style=flat-square)'
],
path.join(PUBLIC_DIR, 'README.md')
)
),
writeFile(path.join(PUBLIC_DIR, '.nojekyll'), ''),
writeFile(path.join(PUBLIC_DIR, 'index.html'), html)
]);
return writeFile(path.join(PUBLIC_DIR, 'index.html'), html);
});
const prioritySorter = (a: TreeType, b: TreeType) => ((priorityOrder[a.name] || priorityOrder.default) - (priorityOrder[b.name] || priorityOrder.default)) || fastStringCompare(a.name, b.name);