From d1f08900d4dbaa93b192625ec3559133af5c48dc Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Tue, 21 Dec 2021 13:27:40 +0000 Subject: [PATCH] upate drone --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: