Skip to content

docs: update usage of nitro preset #94

docs: update usage of nitro preset

docs: update usage of nitro preset #94

Workflow file for this run

name: Deploy Docs to Pages
env:
NUXT_APP_BASE_URL: ${{secrets.NUXT_APP_BASE_URL}}
NUXT_PUBLIC_SITE_URL: ${{secrets.NUXT_PUBLIC_SITE_URL}}
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
generate-docs:
name: Generate Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- run: npm i -g pnpm @antfu/ni
- name: Setup Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: nci
- name: Static HTML export with Nuxt
run: nr generate
env:
NITRO_PRESET: github-pages
- name: Upload artifact
uses: actions/upload-pages-artifact@66b63f4a7de003f4f00cc8e9af4b83b8f2abdb96 # v1
with:
path: .output/public
deploy:
needs: generate-docs
name: Deploy to GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@ee48c7b82e077d7b8ef30b50a719e6a792a50c9a # v2