Skip to content

Commit

Permalink
ci: 💚 debug github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Sep 29, 2023
1 parent b643e5e commit b2da525
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down

0 comments on commit b2da525

Please sign in to comment.