Skip to content

Commit 87beb69

Browse files
committed
chore: set up deno deploy
1 parent eaaf655 commit 87beb69

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,37 @@ jobs:
2828

2929
- name: Lint
3030
run: pnpm lint
31+
32+
deno_deploy:
33+
needs: ci
34+
35+
runs-on: ubuntu-latest
36+
37+
permissions:
38+
id-token: write # Needed for auth with Deno Deploy
39+
contents: read # Needed to clone the repository
40+
41+
steps:
42+
- uses: actions/checkout@v6
43+
44+
- uses: pnpm/action-setup@v4
45+
46+
- uses: actions/setup-node@v6
47+
with:
48+
node-version: 24.12.0
49+
cache: pnpm
50+
51+
- name: Install dependencies
52+
run: pnpm install --frozen-lockfile
53+
54+
- name: Build for Deno
55+
run: pnpm build
56+
env:
57+
NITRO_PRESET: deno_deploy
58+
59+
- name: Deploy to Deno Deploy
60+
uses: denoland/deployctl@v1
61+
with:
62+
project: ghloc
63+
entrypoint: server/index.mjs
64+
root: .output

nitro.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export default defineNitroConfig({
66
compatibilityDate: "2025-07-22",
77
srcDir: "src",
88
errorHandler: "~/error",
9+
experimental: {
10+
wasm: true,
11+
},
912
compressPublicAssets: {
1013
gzip: true,
1114
brotli: true,

0 commit comments

Comments
 (0)