Explorar el Código

FIX XD

master
peter hace 4 años
padre
commit
72bd1209b9
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. 5
    2
      .drone.yml

+ 5
- 2
.drone.yml Ver fichero

@@ -64,11 +64,14 @@ steps:
64 64
   - echo $DRONE_BUILD_CREATED
65 65
   - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
66 66
   - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
67
+  - git clone https://gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git
68
+  - rm -rf ./${DRONE_REPO_NAME}/*
69
+  - cp -r ./docs/* ./${DRONE_REPO_NAME}
70
+  - ls ./${DRONE_REPO_NAME}
67 71
   - git add -f docs
68 72
   - git commit --allow-empty -m "Drone tagged as ${DRONE_TAG}"
69 73
   - git tag "${DRONE_TAG}"
70
-  - git push -f -u https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git ${DRONE_TAG}
71
-  - git push -f -u https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master
74
+  - git push -f -u https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fw-docs/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
72 75
   environment:
73 76
     GIT_USER:
74 77
       from_secret: git_user

Loading…
Cancelar
Guardar