ci: simplify vite build command and update base path

Remove repository name extraction from build command and update base path to '/easy-vibe/'
Add rollup options for hashed filenames to ensure cache busting
This commit is contained in:
sanbuphy
2026-01-12 21:24:37 +08:00
parent eaac9b5452
commit 70c127d5ad
2 changed files with 15 additions and 5 deletions
+1 -3
View File
@@ -40,9 +40,7 @@ jobs:
run: npm ci
- name: Build with VitePress
run: |
REPO_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')
echo "Building for repository: $REPO_NAME"
npm run build -- --base /$REPO_NAME/
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with: