Skip to content

Commit fabcf1b

Browse files
committed
Update scripts to use older version of Deno
1 parent 2c0adb9 commit fabcf1b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/checkout@v3
3333
- uses: denoland/setup-deno@v1
3434
with:
35-
deno-version: vx.x.x
35+
deno-version: v1.x.x
3636
- run: deno run --allow-all index.ts
3737
- name: Setup Pages
3838
uses: actions/configure-pages@v1

index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export const config: IConfig = {
1515
headerContent: decoder.decode(Deno.readFileSync('./header.html')),
1616
footerContent: decoder.decode(Deno.readFileSync('./footer.html'))
1717
}
18-
18+
console.log(`cwd: ` + Deno.cwd());
19+
console.log(`Reading all files in ${config.distPath}`);
1920
for (let item of Deno.readDirSync(config.distPath))
2021
{
2122
if (!item.isFile && item.name != '.gitkeep')
@@ -32,4 +33,4 @@ for (let item of Deno.readDirSync(config.imagePath))
3233
Deno.copyFileSync(
3334
path.join(config.imagePath, item.name),
3435
path.join(config.distPath, item.name))
35-
}
36+
}

0 commit comments

Comments
 (0)