Skip to content

Commit 61f1410

Browse files
author
Parsa Azari
committed
[DEPLOY]: Clean root before deploy and fix Vite base path
1 parent f74b41b commit 61f1410

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ jobs:
4040
4141
- name: Deploy built files to root for GitHub Pages
4242
run: |
43-
# Backup development files
44-
mkdir -p backup-dev
45-
cp index.html backup-dev/
46-
cp -r src backup-dev/ 2>/dev/null || true
43+
# Remove everything except .git, .github, and dist
44+
find . -maxdepth 1 ! -name '.' ! -name '.git' ! -name '.github' ! -name 'dist' -exec rm -rf {} +
4745
4846
# Copy built files to root
4947
cp -r dist/* .

0 commit comments

Comments
 (0)