diff --git a/.drone.yml b/.drone.yml index 77cacac..0b608c2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -64,12 +64,11 @@ steps: - echo ${DRONE_BUILD_CREATED} - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}" - git config --global user.name "${DRONE_COMMIT_AUTHOR}" - - git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git - - git checkout master - - git rm -rf ./${DRONE_REPO_NAME}/* - - cp -r ./docs/* ./${DRONE_REPO_NAME} + - echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git + - echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./${DRONE_REPO_NAME}/* + - echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ./docs/* ./${DRONE_REPO_NAME} - ls ./${DRONE_REPO_NAME} - - git add ${DRONE_REPO_NAME}/* + - echo "add files in ${DRONE_REPO_NAME}"; git add ${DRONE_REPO_NAME}/* - git commit -m "Drone tagged as ${DRONE_TAG}" - git tag "${DRONE_TAG}" - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}