feat: add guarded GitHub Pages deployment

This commit is contained in:
2026-08-31 12:42:59 +09:00
parent 89169c5c0d
commit 944da34c45
10 changed files with 268 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { readFile, rm, writeFile } from 'node:fs/promises';
import path from 'node:path';
const output = path.resolve('offline-dist');
const output = path.resolve(process.argv[2] ?? 'offline-dist');
const htmlPath = path.join(output, 'index.html');
const scriptPath = path.join(output, 'assets', 'app.js');
const stylePath = path.join(output, 'assets', 'app.css');