From acc9bcb98b825a8d193f4e4bcbbb67008ad4c9fa Mon Sep 17 00:00:00 2001 From: unkn0wn Date: Wed, 24 Jun 2026 08:38:40 +0200 Subject: [PATCH] fix: clean up old documentation files before deployment --- .gitea/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 36fdd8c..61250de 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -52,7 +52,10 @@ jobs: if: steps.version_check.outputs.changed == 'true' run: | # Clean old documentation files - rm -rf /var/www/design-system/* + rm -rf /var/www/design-system + + # 2. Recreate the fresh, empty directory + mkdir -p /var/www/design-system # Copy the new build (replace 'dist' if your build output directory is different) cp -r dist/* /var/www/design-system/