Fix CI pages deploy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dominic Grimm 2022-11-01 12:44:10 +01:00
parent 3bca69a7ce
commit ef351025ab
No known key found for this signature in database
GPG key ID: 6F294212DEAAC530

View file

@ -135,9 +135,10 @@ steps:
- name: pages
path: /tmp/pages
commands:
- git clone --depth 1 --branch pages https://git.dergrimm.net/mentorenwahl/mentorenwahl.git /tmp/pages
- ls -la /tmp/pages
- shopt -s dotglob && find /tmp/pages/* -not -name '.git' -delete
- git clone --depth 1 --branch pages https://git.dergrimm.net/mentorenwahl/mentorenwahl.git /tmp/pages_old
- ls -la /tmp/pages_old
# - shopt -s dotglob && find /tmp/pages/* -not -name '.git' -delete
- cp -r /tmp/pages_old/.git /tmp/pages
- ls -la /tmp/pages
# - rm -rf /tmp/pages/*
# - cp -r ./docs/book/* /tmp/pages