diff --git a/.github/workflows/deploy.js b/.github/workflows/deploy.js index 64cbecd..1b34c1a 100644 --- a/.github/workflows/deploy.js +++ b/.github/workflows/deploy.js @@ -10,12 +10,17 @@ import { basename } from 'node:path'; try { const files = await readdir('./'); for (const file of files) { - if (file.endsWith('.html')) { - const name = basename(file, '.html'); - await mkdir(`./${name}`, { recursive: true }); - await copyFile(`./${file}`, `./${name}/index.html`); - console.log(file, name, file.endsWith('.html'), name.includes('.html')); - } + // if (file.endsWith('.html')) { + // const name = basename(file, '.html'); + // await mkdir(`./${name}`, { recursive: true }); + // // await copyFile(`./src/${file}`, `./${name}/index.html`); + // await copyFile(`./src/${file}`, `./${name}`); + console.log( + file, name, + file.endsWith('.html'), + name.includes('.html') + ); + // } } console.log('replaced named html files with {name}/index.html!');