This commit is contained in:
peter
2019-09-22 14:52:46 +02:00
parent 5bfbc43205
commit 4b6ae84e88
+4 -5
View File
@@ -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}