mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-14 15:54:03 +01:00
ci: add nuxthub workflow
This commit is contained in:
committed by
GitHub
parent
506152a986
commit
f586394f80
34
.github/workflows/nuxthub.yml
vendored
Normal file
34
.github/workflows/nuxthub.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
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 Bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
|
- name: Install Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install
|
||||||
|
|
||||||
|
- name: Ensure NuxtHub module is installed
|
||||||
|
run: bunx nuxthub@latest ensure
|
||||||
|
|
||||||
|
- name: Build & Deploy to NuxtHub
|
||||||
|
uses: nuxt-hub/action@v2
|
||||||
|
with:
|
||||||
|
project-key: artchat-vuju
|
||||||
Reference in New Issue
Block a user