Update vite.yml

This commit is contained in:
Leo Wen
2025-01-22 20:20:42 -08:00
committed by GitHub
parent c608e33532
commit f2f38fd638
+15 -8
View File
@@ -1,4 +1,3 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages name: Deploy static content to Pages
on: on:
@@ -30,22 +29,30 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4 # Set up Bun instead of Node.js
- name: Set up Bun
uses: oven-sh/setup-bun@v1
with: with:
node-version: 20 bun-version: latest
cache: 'npm'
# Install dependencies using Bun
- name: Install dependencies - name: Install dependencies
run: npm ci run: bun install --frozen-lockfile
# Build the project using Bun (Vite should be run using `bun run build`)
- name: Build - name: Build
run: npm run build run: bun run build
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v4 uses: actions/configure-pages@v4
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
# Upload dist folder # Upload dist folder (Vite's build output)
path: './dist' path: './dist'
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4