diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0c557d2..62c0765 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -52,8 +52,10 @@ jobs: - name: Copy current repo contents into target subfolder run: | - rm -R target/$TARGET_SUBFOLDER + rm -Rf target/template/content + rm -Rf target/$TARGET_SUBFOLDER mkdir -p target/$TARGET_SUBFOLDER + mkdir -p target/template/content # Exclude the .git directory from the copy rsync -av --exclude={.git,.obsidian,.gitea} current/content/ target/$TARGET_SUBFOLDER/