forked from federated-nexus/website
use deno in action
This commit is contained in:
parent
1d565fa13a
commit
d84a869a55
2 changed files with 11 additions and 5 deletions
9
.github/workflows/astro.yml
vendored
9
.github/workflows/astro.yml
vendored
|
|
@ -21,16 +21,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v6
|
||||
- uses: denoland/setup-deno@v2
|
||||
with:
|
||||
node-version: "24"
|
||||
cache: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: deno i
|
||||
|
||||
- name: Build with Astro
|
||||
run: npm run astro build
|
||||
run: deno run astro build
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
|
|
|
|||
7
deno.json
Normal file
7
deno.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"imports": {
|
||||
"fs": "node:fs",
|
||||
"url": "node:url",
|
||||
"path": "node:path"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue