fix maybe
This commit is contained in:
+4
-10
@@ -42,23 +42,17 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- npm run test
|
- npm run test
|
||||||
|
|
||||||
- name: npm run docs
|
- name: rebuild documentation
|
||||||
image: node:12
|
image: node:12
|
||||||
commands:
|
commands:
|
||||||
|
- rm -rf ${DRONE_REPO_NAME}/docs
|
||||||
- npm run docs
|
- npm run docs
|
||||||
|
|
||||||
- name: git checkin docs
|
- name: commit documentation
|
||||||
image: node:12
|
image: node:12
|
||||||
commands:
|
commands:
|
||||||
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
|
||||||
- git config --global user.name "${DRONE_COMMIT_AUTHOR}"
|
|
||||||
- git clone https://gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git
|
|
||||||
- rm -rf ${DRONE_REPO_NAME}/docs
|
|
||||||
- cp -r docs ${DRONE_REPO_NAME}/docs
|
|
||||||
- ls ./${DRONE_REPO_NAME}
|
|
||||||
- cd ./${DRONE_REPO_NAME}
|
|
||||||
- git add -f docs
|
- git add -f docs
|
||||||
- git commit --allow-empty -m "drone tagged as version ${DRONE_BUILD_CREATED}"
|
- git commit --allow-empty -m "documented version at ${DRONE_BUILD_CREATED}"
|
||||||
- git tag ${DRONE_BUILD_CREATED}
|
- git tag ${DRONE_BUILD_CREATED}
|
||||||
- git status
|
- git status
|
||||||
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git master ${DRONE_BUILD_CREATED}
|
- git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git master ${DRONE_BUILD_CREATED}
|
||||||
|
|||||||
Reference in New Issue
Block a user