From a6e9731a236281a48bcbe58d2106c702a6c27fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=BCbleitner?= Date: Sun, 22 Sep 2019 11:37:56 +0200 Subject: [PATCH] fix maybe --- .drone.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 146a041..f3391a3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,23 +42,17 @@ steps: commands: - npm run test -- name: npm run docs +- name: rebuild documentation image: node:12 commands: + - rm -rf ${DRONE_REPO_NAME}/docs - npm run docs -- name: git checkin docs +- name: commit documentation image: node:12 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 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 status - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-vendor/${DRONE_REPO_NAME}.git master ${DRONE_BUILD_CREATED}