|
|
|
|
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
|
67
|
- git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
|
68
|
- - rm -rf ./${DRONE_REPO_NAME}/*
|
|
|
|
|
68
|
+ - git rm -rf ./${DRONE_REPO_NAME}/*
|
69
|
- cp -r ./docs/* ./${DRONE_REPO_NAME}
|
69
|
- cp -r ./docs/* ./${DRONE_REPO_NAME}
|
70
|
- ls ./${DRONE_REPO_NAME}
|
70
|
- ls ./${DRONE_REPO_NAME}
|
71
|
- git add -f docs
|
71
|
- git add -f docs
|
72
|
- git commit --allow-empty -m "Drone tagged as ${DRONE_TAG}"
|
72
|
- git commit --allow-empty -m "Drone tagged as ${DRONE_TAG}"
|
73
|
- git tag "${DRONE_TAG}"
|
73
|
- git tag "${DRONE_TAG}"
|
74
|
- - git push -f -u 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}
|
75
|
environment:
|
75
|
environment:
|
76
|
GIT_USER:
|
76
|
GIT_USER:
|
77
|
from_secret: git_user
|
77
|
from_secret: git_user
|