Browse Source

FIX XD

master
peter 5 years ago
parent
commit
4b6ae84e88
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      .drone.yml

+ 4
- 5
.drone.yml View File

64
   - echo ${DRONE_BUILD_CREATED}
64
   - echo ${DRONE_BUILD_CREATED}
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
68
-  - git checkout master
69
-  - git rm -rf ./${DRONE_REPO_NAME}/*
70
-  - cp -r ./docs/* ./${DRONE_REPO_NAME}
67
+  - echo "clone ${DRONE_REPO_NAME}"; git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
68
+  - echo "remove files in ${DRONE_REPO_NAME}"; rm -rf ./${DRONE_REPO_NAME}/*
69
+  - echo "copy docs to ${DRONE_REPO_NAME}"; cp -r ./docs/* ./${DRONE_REPO_NAME}
71
   - ls ./${DRONE_REPO_NAME}
70
   - ls ./${DRONE_REPO_NAME}
72
-  - git add ${DRONE_REPO_NAME}/*
71
+  - echo "add files in ${DRONE_REPO_NAME}"; git add ${DRONE_REPO_NAME}/*
73
   - git commit -m "Drone tagged as ${DRONE_TAG}"
72
   - git commit -m "Drone tagged as ${DRONE_TAG}"
74
   - git tag "${DRONE_TAG}"
73
   - git tag "${DRONE_TAG}"
75
   - git push 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}

Loading…
Cancel
Save