chore(github): update workflows

This commit is contained in:
Benjamin Canac
2025-01-07 11:17:12 +01:00
parent 61389b8b5a
commit fd5a529565
2 changed files with 16 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node: [20]
node: [22]
env:
NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }}

View File

@@ -1,9 +1,16 @@
name: Deploy to NuxtHub
on: push
name: docs
on:
push:
branches:
- v3
pull_request:
branches:
- v3
jobs:
deploy:
name: "Deploy to NuxtHub"
name: "Deploy docs to NuxtHub"
runs-on: ubuntu-latest
environment:
name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }}
@@ -27,11 +34,15 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Prepare build
run: pnpm dev:prepare
- name: Build application
run: pnpm build
run: pnpm docs:build
- name: Deploy to NuxtHub
uses: nuxt-hub/action@v1
id: deploy
with:
project-key: ui-7eg3
directory: docs/dist