From e6f3a32c7c81feb1338d46e9090a45763578c73e Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sun, 28 Jun 2026 00:05:45 +0800 Subject: [PATCH] CI: Housekeeping & nojekyll --- .github/workflows/main.yml | 2 +- Build/build-public.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2a12f618..516a4670 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -159,7 +159,7 @@ jobs: id: npm_cache_path shell: sh run: echo dir=$(npm config get cache) >> $GITHUB_OUTPUT - - uses: actions/cache@v5 + - uses: actions/cache@v6 with: path: | ${{ steps.npm_cache_path.outputs.dir }} diff --git a/Build/build-public.ts b/Build/build-public.ts index 34c2d83a..82168534 100644 --- a/Build/build-public.ts +++ b/Build/build-public.ts @@ -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);