diff --git a/.drone.yml b/.drone.yml index 5ded11b..b214e21 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,10 +14,10 @@ steps: - npm run build - apt-get update && apt-get install -y rsync - git config credential.helper '!f() { echo username=inherentlee; echo "password=$GIT_TOKEN"; };f' - - git submodule update --remote --init --recursive --merge + - git submodule update --remote --init --merge - rsync -uavh _site/ $REPOSITORY --delete --exclude .git - cd $REPOSITORY - - git status + - git checkout main - git config --global --add safe.directory /drone/src/$REPOSITORY - git add -A - git commit -m "drone build $(TZ=':America/Los_Angeles' date)"