Skip to content

ci: update NuxtHub workflow to set build command based on branch envi… #210

ci: update NuxtHub workflow to set build command based on branch envi…

ci: update NuxtHub workflow to set build command based on branch envi… #210

Workflow file for this run

name: Deploy to NuxtHub
on: push
jobs:
deploy:
name: Deploy to NuxtHub
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Ensure NuxtHub module is installed
run: pnpx nuxthub@latest ensure
- name: Build & Deploy to NuxtHub
uses: nuxt-hub/action@v2
with:
project-key: nimiq-website-mqst
build-command: NUXTHUB_ENV=${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }} pnpm run build:nuxthub