Fix broken gh-pages sqlite3 dependency with Bun

This commit is contained in:
Riyyi
2025-03-30 11:23:16 +02:00
parent d4c487cd92
commit e2e33c725f
4 changed files with 12532 additions and 458 deletions
+14 -5
View File
@@ -1,3 +1,5 @@
# https://github.com/actions/starter-workflows/blob/main/pages/nuxtjs.yml
#
# Sample workflow for building and deploying a Nuxt site to GitHub Pages
#
# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation
@@ -31,14 +33,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
# - name: Setup Bun
# uses: oven-sh/setup-bun@v2
# with:
# bun-version: latest
- name: Setup Node
uses: actions/setup-node@v4
with:
bun-version: latest
node-version: "20"
cache: npm
- name: Install dependencies
run: bun install
# run: bun install
run: npm ci
- name: Static HTML export with Nuxt
run: NUXT_APP_BASE_URL="/${{ github.event.repository.name }}/" bun run generate
# run: NUXT_APP_BASE_URL="/${{ github.event.repository.name }}/" bun run generate
run: NUXT_APP_BASE_URL="/${{ github.event.repository.name }}/" npm run generate
- name: Create .nojekyll file
run: touch ./dist/.nojekyll
- name: Upload artifact