|
|
|
|
64
|
- echo ${DRONE_BUILD_CREATED}
|
64
|
- echo ${DRONE_BUILD_CREATED}
|
65
|
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
65
|
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
66
|
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
66
|
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
67
|
- - git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
|
|
|
68
|
- - git checkout master
|
|
|
69
|
- - git rm -rf ./${DRONE_REPO_NAME}/*
|
|
|
70
|
- - cp -r ./docs/* ./${DRONE_REPO_NAME}
|
|
|
|
|
67
|
+ - echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
|
|
|
68
|
+ - echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./${DRONE_REPO_NAME}/*
|
|
|
69
|
+ - echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ./docs/* ./${DRONE_REPO_NAME}
|
71
|
- ls ./${DRONE_REPO_NAME}
|
70
|
- ls ./${DRONE_REPO_NAME}
|
72
|
- - git add ${DRONE_REPO_NAME}/*
|
|
|
|
|
71
|
+ - echo "add files in ${DRONE_REPO_NAME}"; git add ${DRONE_REPO_NAME}/*
|
73
|
- git commit -m "Drone tagged as ${DRONE_TAG}"
|
72
|
- git commit -m "Drone tagged as ${DRONE_TAG}"
|
74
|
- git tag "${DRONE_TAG}"
|
73
|
- git tag "${DRONE_TAG}"
|
75
|
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
|
74
|
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
|