|
@@ -42,23 +42,17 @@ steps:
|
42
|
42
|
commands:
|
43
|
43
|
- npm run test
|
44
|
44
|
|
45
|
|
-- name: npm run docs
|
|
45
|
+- name: rebuild documentation
|
46
|
46
|
image: node:12
|
47
|
47
|
commands:
|
|
48
|
+ - rm -rf ${DRONE_REPO_NAME}/docs
|
48
|
49
|
- npm run docs
|
49
|
50
|
|
50
|
|
-- name: git checkin docs
|
|
51
|
+- name: commit documentation
|
51
|
52
|
image: node:12
|
52
|
53
|
commands:
|
53
|
|
- - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
54
|
|
- - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
55
|
|
- - git clone https://gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git
|
56
|
|
- - rm -rf ${DRONE_REPO_NAME}/docs
|
57
|
|
- - cp -r docs ${DRONE_REPO_NAME}/docs
|
58
|
|
- - ls ./${DRONE_REPO_NAME}
|
59
|
|
- - cd ./${DRONE_REPO_NAME}
|
60
|
54
|
- git add -f docs
|
61
|
|
- - git commit --allow-empty -m "drone tagged as version ${DRONE_BUILD_CREATED}"
|
|
55
|
+ - git commit --allow-empty -m "documented version at ${DRONE_BUILD_CREATED}"
|
62
|
56
|
- git tag ${DRONE_BUILD_CREATED}
|
63
|
57
|
- git status
|
64
|
58
|
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git master ${DRONE_BUILD_CREATED}
|