|
|
|
|
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
|
- echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
|
67
|
- echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
|
68
|
- - head -n -2 ./README.md > ./${DRONE_REPO_NAME}/README.md
|
|
|
69
|
- cd ${DRONE_REPO_NAME}
|
68
|
- cd ${DRONE_REPO_NAME}
|
70
|
- git reset HEAD --hard
|
69
|
- git reset HEAD --hard
|
71
|
- echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./*
|
70
|
- echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./*
|
72
|
- echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ../docs/* .
|
71
|
- echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ../docs/* .
|
73
|
- ls
|
72
|
- ls
|
|
|
73
|
+ - head -n -2 ../README.md > ./README.md
|
74
|
- echo "## Version" >> ./README.md
|
74
|
- echo "## Version" >> ./README.md
|
75
|
- echo "${DRONE_TAG}" >> ./README.md
|
75
|
- echo "${DRONE_TAG}" >> ./README.md
|
76
|
- echo "" >> ./README.md
|
76
|
- echo "" >> ./README.md
|