diff --git a/.drone.yml b/.drone.yml index b1b152c..d15862e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,8 +13,10 @@ steps: - cd brainsteam - hugo - cd ../ - - cp -r brainsteam/public/* . + - git fetch origin public && git checkout public + - cp -r brainsteam/public new_files - rm -rf brainsteam/ + - mv new_files/* . - name: hugo_publish #image: alpine:3.12.3 image: appleboy/drone-git-push @@ -23,7 +25,6 @@ steps: branch: public local_ref: public commit: true - force: true commit_message: update build from hugo author_name: DroneCI # when: