Skip to content

[Deno Deploy] Add .github/workflows/deploy.yml #252

[Deno Deploy] Add .github/workflows/deploy.yml

[Deno Deploy] Add .github/workflows/deploy.yml #252

Workflow file for this run

name: deno-deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- run: pnpm install
- run: pnpm run build
env:
NITRO_PRESET: deno_deploy
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: raspirus
entrypoint: server/index.ts
root: .output