Deploy to Deno #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample workflow for building and deploying a Nuxt site to GitHub Pages | |
# | |
# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation | |
# | |
name: Deploy Nuxt site to Pages | |
on: | |
# Runs on pushes targeting the default branch | |
# Disabled at the moment | |
# push: | |
# branches: ["main"] | |
pull_request: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: corepack enable | |
- uses: actions/setup-node@v3 | |
with: | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm build | |
env: | |
NITRO_PRESET: deno_deploy | |
- name: Deploy to Deno Deploy | |
uses: denoland/deployctl@v1 | |
with: | |
project: nikechukwu | |
entrypoint: server/index.ts | |
root: .output | |