Skip to content

Commit f54cd0f

Browse files
committed
improve command to delete repo
1 parent 403bdd2 commit f54cd0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
4242
- name: Copy build to destination
4343
run: |
44-
# Remove all files from destination except .git and distribucions directory
45-
find destination -mindepth 1 -not -name '.git' -not -name 'distribucions' -exec rm -rf {} \;
44+
# Remove all files from destination except .git and distribucions subdirectories
45+
find destination -mindepth 1 -not -path '*/.git' -not -path '*/distribucions/catux/*' -not -name 'CNAME' -type f -delete;
4646
4747
# Copy all built files to destination
4848
cp -r source/app/public/* destination/

0 commit comments

Comments
 (0)