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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user