update drone conditional for git
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
oDinZu 2022-11-29 16:58:34 -05:00
parent 10685ced59
commit a164d90af7

View File

@ -109,10 +109,16 @@ steps:
- git clone https://git.sharpetronics.com/sharpetronics/sharpetronics.com.git - git clone https://git.sharpetronics.com/sharpetronics/sharpetronics.com.git
- cd sharpetronics.com/ - cd sharpetronics.com/
- git checkout www-data - git checkout www-data
# remove all build files and keep only _site directory
- rm -rfv .
# copy all the files from the finished previous build ../site
- cp -R ../_site/* . - cp -R ../_site/* .
- git add * # display files being pushed to www-data
- git add -f uploads - ls -a .
- git commit -m "SharpeTronics bots bee ring bots! A drone CD www-data sync" # add changes from all tracked and untracked files
- git add -A
- git commit -m "SharpeTronics bots bee-ring bots!"
# push fresh _site only www-data to remote git.sharpetronics.com
- git push https://$GITEA_USER:$GITEA_PASS@git.sharpetronics.com/sharpetronics/sharpetronics.com.git origin www-data - git push https://$GITEA_USER:$GITEA_PASS@git.sharpetronics.com/sharpetronics/sharpetronics.com.git origin www-data
# sync files to remote server [local _site ] to [remote www edge] while preserving permissions. # sync files to remote server [local _site ] to [remote www edge] while preserving permissions.