Browse Source

remove old dist stuff

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

+ 4
- 1
.drone.yml View File

@@ -43,13 +43,16 @@ steps:
43 43
   - git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
44 44
   - git config --global user.name "${DRONE_COMMIT_AUTHOR}"
45 45
   - git clone https://gitea.frontblock.me/fb-dist/${DRONE_REPO_NAME}.git
46
+  - mv ./${DRONE_REPO_NAME}/.git .
47
+  - rm -rf ./${DRONE_REPO_NAME}/*
48
+  - mv .git ./${DRONE_REPO_NAME} 
46 49
   - cp -r ./dist/* ./${DRONE_REPO_NAME}
47 50
   - cp -r ./static ./${DRONE_REPO_NAME}
48 51
   - cd ./${DRONE_REPO_NAME}
49 52
   - git add -A
50 53
   - git commit --allow-empty -m "drone tagged as version ${DRONE_TAG}"
51 54
   - git tag ${DRONE_TAG}
52
-  - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fb-dist/${DRONE_REPO_NAME}.git master ${DRONE_TAG} --force
55
+  - git push https://$GIT_USER:$GIT_PASSWORD@gitea.frontblock.me/fb-dist/${DRONE_REPO_NAME}.git master ${DRONE_TAG}
53 56
   environment:
54 57
     GIT_USER:
55 58
       from_secret: git_user

Loading…
Cancel
Save