diff --git a/.drone.yml b/.drone.yml index 8fb41d4..79c04c0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: - chmod 400 $HOME/.ssh/id_rsa - ssh-keyscan -H git.ericxliu.me > $HOME/.ssh/known_hosts - git clone --branch gitea-pages git@git.ericxliu.me:eric/ericxliu-me.git /output - - rm -rf /output/* + - find /output -mindepth 1 -not -regex "^\./\.git.*" -delete - name: build image: plugins/hugo volumes: