-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 927 Bytes
/
deno.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy from Astro via Deno
on:
push:
pull_request:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup deno
uses: denoland/setup-deno@v1
- uses: actions/cache@v3
id: deno_cache
env:
cache-name: cache-deno
with:
path: |
node_modules
/home/runner/.cache/deno
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/deno.lock', '**/pnpm-lock.yaml') }}
- name: Test deno cache dir
run: deno info
- name: Build Astro from Deno
run: deno task build
- name: Deploy Astro Website
uses: denoland/deployctl@v1
with:
project: "nanohanote"
entrypoint: server/entry.mjs
root: dist