-
Notifications
You must be signed in to change notification settings - Fork 28
47 lines (37 loc) · 1.08 KB
/
nuxthub.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Deploy to NuxtHub
on: push
jobs:
deploy:
name: "Deploy to NuxtHub"
runs-on: ubuntu-latest
environment:
name: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
url: ${{ steps.deploy.outputs.deployment-url }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Enable corepack
run: npm i -g --force corepack && corepack enable
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 23
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Prepare project
run: pnpm dev:prepare
- name: Ensure NuxtHub module is installed
run: pnpx nuxthub@latest ensure playground
- name: Build application
run: pnpm dev:build
- name: Deploy to NuxtHub
uses: nuxt-hub/action@v1
id: deploy
with:
project-key: mdc-ribk
directory: playground/dist