|
@@ -65,13 +65,14 @@ steps:
|
65
|
65
|
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
66
|
66
|
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
67
|
67
|
- echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
|
|
68
|
+ - cd ${DRONE_REPO_NAME}
|
68
|
69
|
- git reset HEAD --hard
|
69
|
|
- - echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./${DRONE_REPO_NAME}/*
|
70
|
|
- - echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ./docs/* ./${DRONE_REPO_NAME}
|
71
|
|
- - ls ./${DRONE_REPO_NAME}
|
72
|
|
- - echo "add files in ${DRONE_REPO_NAME}"; git add ${DRONE_REPO_NAME}/*
|
|
70
|
+ - echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./*
|
|
71
|
+ - echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ../docs/* .
|
|
72
|
+ - ls
|
|
73
|
+ - echo "add files in ${DRONE_REPO_NAME}"; git add -A
|
73
|
74
|
- git commit -m "Drone tagged as ${DRONE_TAG}"
|
74
|
|
- - git push --force https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master
|
|
75
|
+ - git push --force origin master
|
75
|
76
|
environment:
|
76
|
77
|
GIT_USER:
|
77
|
78
|
from_secret: git_user
|